Skip to content

Commit 2e9288e

Browse files
jackmthwsluk1337
authored andcommitted
SystemUI: Don't use horizontal quick settings on large screens
On large screens such as tablets, the horizontal quick settings isn't necessary as we have enough room for the normal quick settings and media player. It also seems to have issues on large screens, on my v1awifi I can't swipe to a different quick settings page and the media player album art overlaps the media controls. Change-Id: I6e1a61b9280ed566b2348ecf06c47b789d1e0e3c
1 parent 7f7fc25 commit 2e9288e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/SystemUI/src/com/android/systemui/qs/QSPanel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,9 @@ private void switchToParent(View child, ViewGroup parent, int index) {
663663
private boolean shouldUseHorizontalLayout() {
664664
return mUsingMediaPlayer && mMediaHost.getVisible()
665665
&& getResources().getConfiguration().orientation
666-
== Configuration.ORIENTATION_LANDSCAPE;
666+
== Configuration.ORIENTATION_LANDSCAPE
667+
&& getResources().getConfiguration().screenWidthDp
668+
< 600;
667669
}
668670

669671
protected void reAttachMediaHost() {

0 commit comments

Comments
 (0)