From 27b3b2bc1bde242686d87590343740faf034f607 Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Wed, 4 Oct 2017 14:18:30 -0700 Subject: [PATCH] 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 --- .../src/com/android/systemui/recents/RecentsActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java index f5455568f7991..86b77900fdbc9 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java @@ -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);