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

Commit f733c2aa authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Make the status and navigation bars OPAQUE.

Bug: 5369240
Change-Id: I1c01baa732f441bf7d2c469eb7d3d82d26da07b1
parent a6ccaa73
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -118,7 +118,7 @@ public abstract class StatusBar extends SystemUI implements CommandQueue.Callbac
                WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                    | WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
                    | WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING
                    | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
                    | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH,
                PixelFormat.RGBX_8888);
                PixelFormat.OPAQUE);
        
        
        // the status bar should be in an overlay if possible
        // the status bar should be in an overlay if possible
        final Display defaultDisplay 
        final Display defaultDisplay 
+1 −6
Original line number Original line Diff line number Diff line
@@ -316,12 +316,7 @@ public class PhoneStatusBar extends StatusBar {
        }
        }


        // figure out which pixel-format to use for the status bar.
        // figure out which pixel-format to use for the status bar.
        mPixelFormat = PixelFormat.TRANSLUCENT;
        mPixelFormat = PixelFormat.OPAQUE;
        Drawable bg = sb.getBackground();
        if (bg != null) {
            mPixelFormat = bg.getOpacity();
        }

        mStatusIcons = (LinearLayout)sb.findViewById(R.id.statusIcons);
        mStatusIcons = (LinearLayout)sb.findViewById(R.id.statusIcons);
        mNotificationIcons = (IconMerger)sb.findViewById(R.id.notificationIcons);
        mNotificationIcons = (IconMerger)sb.findViewById(R.id.notificationIcons);
        mIcons = (LinearLayout)sb.findViewById(R.id.icons);
        mIcons = (LinearLayout)sb.findViewById(R.id.icons);