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
This commit is contained in:
Fabian Kozynski
2021-03-04 14:38:31 -05:00
parent 081b5923b3
commit 44d415b097

View File

@@ -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);
}