summaryrefslogtreecommitdiff
path: root/core/java/android/view/Display.java
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2017-07-27 14:06:22 -0700
committerBryce Lee <brycelee@google.com>2017-07-28 07:49:01 -0700
commit0e4a6dfb3facd926a6424b4274bcab9b9734307c (patch)
tree0d5e4a8825b0ff6d15776c2e89d6a95dd70e3bd9 /core/java/android/view/Display.java
parentf2c8a24f56a86c71fb761fc0b2db741a960a9df9 (diff)
Remove rotation and app bounds from Configuration diff.
The presence of these new flags leads to issues with application that do not expect their presence. Since these flags can appear at critical times, such as on orientation change, these issues are brought to the surface often. This CL remedies this problem by first removing the rotation property. It is not used and the original issue of orientation and Configuration alignment has been addressed. For app bounds, the CL reverts the behavior back to identifying diffs as a screen size change. Fixes: 64004417 Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests Test: go/wm-smoke Change-Id: I1fabb564dfb5c13d897336708523cf7cd5099fa0
Diffstat (limited to 'core/java/android/view/Display.java')
-rw-r--r--core/java/android/view/Display.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java
index 263d3ff423c5..97788931ea93 100644
--- a/core/java/android/view/Display.java
+++ b/core/java/android/view/Display.java
@@ -726,17 +726,6 @@ public final class Display {
}
/**
- * Returns the rotation associated with this display as used during layout. This is currently
- * derived from the {@link Configuration}.
- *
- * @hide
- */
- @Surface.Rotation
- public int getLayoutRotation() {
- return mResources.getConfiguration().getRotation();
- }
-
- /**
* @deprecated use {@link #getRotation}
* @return orientation of this display.
*/