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

Commit 63a398fe authored by Anthony Chen's avatar Anthony Chen Committed by Android (Google) Code Review
Browse files

Merge "Allow volume dialog dimensions to be customized."

parents 37745c38 2f60d111
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -137,6 +137,8 @@
    <dimen name="standard_notification_panel_width">416dp</dimen>
    <dimen name="notification_panel_width">@dimen/match_parent</dimen>

    <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 -->
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ public class VolumeDialog implements TunerService.Tunable {
        if (D.BUG) Log.d(TAG, "updateWindowWidth dm.w=" + dm.widthPixels);
        int w = dm.widthPixels;
        final int max = mContext.getResources()
                .getDimensionPixelSize(R.dimen.standard_notification_panel_width);
                .getDimensionPixelSize(R.dimen.volume_dialog_panel_width);
        if (w > max) {
            w = max;
        }