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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user