Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad15fe33 authored by Bill Lin's avatar Bill Lin
Browse files

Adjust QuickQSPanel to fit Tablet display size

- Remove legacy standard_notification_panel_width
- Define default max columns for QQS layout
- Fix Pixcel C & Nexus 7 QQS Tiles over boundry problem

Test: atest SystemUITests
Fix: 110123402
Change-Id: I18ab3d966b3d18775d0b13d6d60d7c09485ba8ae
parent 55a34deb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -17,7 +17,10 @@
-->
<resources>
    <!-- Standard notification width + gravity -->
    <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
    <dimen name="notification_panel_width">416dp</dimen>

    <!-- Width for the spacer, used between QS tiles depend on notification_panel_width -->
    <dimen name="qs_quick_tile_space_width">0dp</dimen>

    <!-- Diameter of outer shape drawable shown in navbar search-->
    <dimen name="navbar_search_outerring_diameter">430dip</dimen>
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="BrightnessDialogContainer" parent="@style/BaseBrightnessDialogContainer">
        <item name="android:layout_width">@dimen/standard_notification_panel_width</item>
        <item name="android:layout_width">@dimen/notification_panel_width</item>
    </style>

    <style name="UserDetailView">
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
 * Copyright (c) 2012, 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>
    <!-- Standard notification width + gravity for tablet large screen device -->
    <dimen name="notification_panel_width">544dp</dimen>
</resources>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -104,6 +104,9 @@
         prevent wasting cpu cycles on the dimming animation -->
    <bool name="config_navigation_bar_enable_auto_dim_no_visible_wallpaper">true</bool>

    <!-- The maximum number of tiles in the QuickQSPanel -->
    <integer name="quick_qs_panel_max_columns">6</integer>

    <!-- Whether QuickSettings is in a phone landscape -->
    <bool name="quick_settings_wide">false</bool>

+0 −1
Original line number Diff line number Diff line
@@ -277,7 +277,6 @@

    <!-- Width for the notification panel and related windows -->
    <dimen name="match_parent">-1px</dimen>
    <dimen name="standard_notification_panel_width">416dp</dimen>

    <!-- The top margin of the panel that holds the list of notifications. -->
    <dimen name="notification_panel_margin_top">0dp</dimen>
Loading