SystemUI 长按POWER键弹出关机等图标,有时候会抖一下

不积跬步无以至千里

如果同样存在此问题,可以参考如下修改,这里废话不多说,直接上才艺。

修改如下两处:

1.app/res/layout/global_actions_column.xml

<!--modify start-->
<!--android:paddingTop="@dimen/global_actions_top_padding"-->
<!--android:gravity="top | right"-->
<!--modify end-->
<com.android.systemui.globalactions.GlobalActionsColumnLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@id/global_actions_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:clipToPadding="false"
    android:paddingTop="@dimen/global_actions_top_padding"
    android:theme="@style/qs_theme"
    android:gravity="top | right"
    android:clipChildren="false"
>

2.app/src/com/android/systemui/globalactions/GlobalActionsColumnLayout.java

@Override
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        super.onLayout(changed, l, t, r, b);

        //delete start
        //post(() -> updateSnap());
        //delete end
    }

亲测,有效。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章