不積跬步無以至千里
如果同樣存在此問題,可以參考如下修改,這裏廢話不多說,直接上才藝。
修改如下兩處:
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
}
親測,有效。