summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
index ed981ed..3d47cb6 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsConfiguration.java
@@ -18,6 +18,7 @@ package com.android.systemui.recents;
import android.content.Context;
import android.content.res.Configuration;
+import android.content.res.Resources;
import android.graphics.Rect;
import android.util.DisplayMetrics;
import android.util.TypedValue;
@@ -31,6 +32,7 @@ public class RecentsConfiguration {
DisplayMetrics mDisplayMetrics;
public Rect systemInsets = new Rect();
+ public Rect displayRect = new Rect();
/** Private constructor */
private RecentsConfiguration() {}
@@ -51,10 +53,11 @@ public class RecentsConfiguration {
/** Updates the state, given the specified context */
void update(Context context) {
- mDisplayMetrics = context.getResources().getDisplayMetrics();
+ Resources res = context.getResources();
+ DisplayMetrics dm = res.getDisplayMetrics();
+ mDisplayMetrics = dm;
- boolean isPortrait = context.getResources().getConfiguration().orientation ==
- Configuration.ORIENTATION_PORTRAIT;
+ displayRect.set(0, 0, dm.widthPixels, dm.heightPixels);
}
public void updateSystemInsets(Rect insets) {