diff options
| author | Adam Powell <adamp@google.com> | 2015-05-18 16:07:42 -0700 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2015-05-18 16:07:42 -0700 |
| commit | 01f280d376218c5a007fc29f70b876375ad24204 (patch) | |
| tree | 542475aea062cf106b13cd52c0f57d812b7ee7a2 /core/java/android/view | |
| parent | 98465f99bb9aa2da3905241a0ca95b708100560b (diff) | |
| download | frameworks_base-01f280d376218c5a007fc29f70b876375ad24204.zip frameworks_base-01f280d376218c5a007fc29f70b876375ad24204.tar.gz frameworks_base-01f280d376218c5a007fc29f70b876375ad24204.tar.bz2 | |
Migrate uses of config_windowIsRound to Configuration.isScreenRound
Move existing code that previously relied on config_windowIsRound to
use the new Configuration.isScreenRound() method. Also move the system
property override for emulators over to the initial setup of a Display
so that the configuration property is consistent with existing
expectations.
Remove config_windowIsRound from symbols.xml. The symbol now only
exists as a default value redirect for overlays already configured to
supply this value.
Change-Id: I24e6564030a6051c3ac7262868983b43e13eee65
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index b7d902c..23f3b62 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -122,7 +122,6 @@ public final class ViewRootImpl implements ViewParent, private static final String PROPERTY_PROFILE_RENDERING = "viewroot.profile_rendering"; // properties used by emulator to determine display shape - public static final String PROPERTY_EMULATOR_CIRCULAR = "ro.emulator.circular"; public static final String PROPERTY_EMULATOR_WIN_OUTSET_BOTTOM_PX = "ro.emu.win_outset_bottom_px"; @@ -341,8 +340,6 @@ public final class ViewRootImpl implements ViewParent, /** Set to true once doDie() has been called. */ private boolean mRemoved; - private final boolean mWindowIsRound; - /** * Consistency verifier for debugging purposes. */ @@ -397,7 +394,6 @@ public final class ViewRootImpl implements ViewParent, mChoreographer = Choreographer.getInstance(); mDisplayManager = (DisplayManager)context.getSystemService(Context.DISPLAY_SERVICE); loadSystemProperties(); - mWindowIsRound = ScreenShapeHelper.getWindowIsRound(context.getResources()); } public static void addFirstDrawHandler(Runnable callback) { @@ -1271,7 +1267,8 @@ public final class ViewRootImpl implements ViewParent, stableInsets = mPendingStableInsets; } mLastWindowInsets = new WindowInsets(contentInsets, - null /* windowDecorInsets */, stableInsets, mWindowIsRound); + null /* windowDecorInsets */, stableInsets, + mContext.getResources().getConfiguration().isScreenRound()); } return mLastWindowInsets; } |
