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
    }

親測,有效。

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