From 44d415b0979eaee6672a67382eb46115f945b791 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Thu, 4 Mar 2021 14:38:31 -0500 Subject: [PATCH] Fix gravity of QQS tile layout The margins are set for the view on both sides as needed, so remove the forced horizontal gravity. This fixes a bug where the layout was not in the correct horizontal position on landscape with media. Bug: 181673785 Test: manual Change-Id: I5977a4dd595e640d9cf28678619d292f5d203ebc --- packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java index 9b66b59c06dfd..53ba4ae98db37 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QuickQSPanel.java @@ -349,7 +349,6 @@ public class QuickQSPanel extends QSPanel { setClipToPadding(false); LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); - lp.gravity = Gravity.CENTER_HORIZONTAL; setLayoutParams(lp); setMaxColumns(4); }