3 column QS
This is applied in portrait width >600dp and all orientations >720dp Test: manual Fixes: 197636649 Change-Id: I1ed0cc795e7f4c846a500353ba93538db23b6f55
This commit is contained in:
27
packages/SystemUI/res/values-sw600dp-port/config.xml
Normal file
27
packages/SystemUI/res/values-sw600dp-port/config.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2021 The Android Open Source Project
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- The maximum number of tiles in the QuickQSPanel -->
|
||||
<integer name="quick_qs_panel_max_tiles">6</integer>
|
||||
|
||||
<!-- The maximum number of rows in the QuickSettings -->
|
||||
<integer name="quick_settings_max_rows">3</integer>
|
||||
|
||||
<!-- The number of columns in the QuickSettings -->
|
||||
<integer name="quick_settings_num_columns">3</integer>
|
||||
</resources>
|
||||
@@ -16,6 +16,6 @@
|
||||
-->
|
||||
<resources>
|
||||
<!-- Size of the panel of large phones on portrait. This shouldn't fill, but have some padding on the side -->
|
||||
<dimen name="notification_panel_width">416dp</dimen>
|
||||
<dimen name="notification_panel_width">504dp</dimen>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -22,5 +22,14 @@
|
||||
<resources>
|
||||
<integer name="status_bar_config_maxNotificationIcons">5</integer>
|
||||
|
||||
<!-- The maximum number of tiles in the QuickQSPanel -->
|
||||
<integer name="quick_qs_panel_max_tiles">6</integer>
|
||||
|
||||
<!-- The number of columns in the QuickSettings -->
|
||||
<integer name="quick_settings_num_columns">3</integer>
|
||||
|
||||
<!-- The maximum number of rows in the QuickSettings -->
|
||||
<integer name="quick_settings_max_rows">3</integer>
|
||||
|
||||
</resources>
|
||||
|
||||
|
||||
@@ -114,6 +114,7 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
if (mLayoutOrientation != newConfig.orientation) {
|
||||
mLayoutOrientation = newConfig.orientation;
|
||||
mDistributeTiles = true;
|
||||
setCurrentItem(0, false);
|
||||
mPageToRestore = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user