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

Commit 27b3b2bc authored by Matthew Ng's avatar Matthew Ng
Browse files

Hides the statusbar in recents for low ram devices

When entering recents on a low ram device, the system will hide the
statusbar to match the spec (go/android-go-recents).

Test: manual - enter recents
Bug: 67346921
Change-Id: I180899560aa1379b0a68cf63ae9b780fdef1746d
parent 0f6e9b5a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -358,6 +358,9 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
        mScrimViews = new SystemBarScrimViews(this);
        getWindow().getAttributes().privateFlags |=
                WindowManager.LayoutParams.PRIVATE_FLAG_FORCE_DECOR_VIEW_VISIBILITY;
        if (Recents.getConfiguration().isLowRamDevice) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }

        mLastConfig = new Configuration(Utilities.getAppConfiguration(this));
        mFocusTimerDuration = getResources().getInteger(R.integer.recents_auto_advance_duration);