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

Commit 160bf4cb authored by Selim Cinek's avatar Selim Cinek Committed by Android (Google) Code Review
Browse files

Merge "Making the notification always center horizonally"

parents 22e4f074 9e87cba5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -19,9 +19,6 @@
    <!-- thickness (width) of the navigation bar on phones that require it -->
    <dimen name="navigation_bar_size">@*android:dimen/navigation_bar_width</dimen>

    <!-- Standard notification gravity -->
    <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>

    <dimen name="docked_divider_handle_width">2dp</dimen>
    <dimen name="docked_divider_handle_height">16dp</dimen>

+0 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@
<resources>
    <!-- Standard notification width + gravity -->
    <dimen name="notification_panel_width">@dimen/standard_notification_panel_width</dimen>
    <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer>

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

    <!-- Gravity for the notification panel -->
    <integer name="standard_notification_panel_layout_gravity">0x31</integer><!-- top|center_horizontal -->
    <integer name="notification_panel_layout_gravity">0x37</integer><!-- fill_horizontal|top -->
    <integer name="notification_panel_layout_gravity">0x31</integer><!-- center_horizontal|top -->

    <!-- Height of the carrier/wifi name label -->
    <dimen name="carrier_label_height">24dp</dimen>
+2 −2
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ public class NotificationPanelView extends PanelView implements
        int panelGravity = getResources().getInteger(R.integer.notification_panel_layout_gravity);
        FrameLayout.LayoutParams lp =
                (FrameLayout.LayoutParams) mQsFrame.getLayoutParams();
        if (lp.width != panelWidth) {
        if (lp.width != panelWidth || lp.gravity != panelGravity) {
            lp.width = panelWidth;
            lp.gravity = panelGravity;
            mQsFrame.setLayoutParams(lp);
@@ -300,7 +300,7 @@ public class NotificationPanelView extends PanelView implements
        }

        lp = (FrameLayout.LayoutParams) mNotificationStackScroller.getLayoutParams();
        if (lp.width != panelWidth) {
        if (lp.width != panelWidth || lp.gravity != panelGravity) {
            lp.width = panelWidth;
            lp.gravity = panelGravity;
            mNotificationStackScroller.setLayoutParams(lp);