diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-05-07 17:31:40 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-05-07 17:32:46 -0700 |
commit | 59d086c3ce5d9c3d800abca73762e82f2489cbec (patch) | |
tree | a6ced495cc09f81894133b54aabd2ec87af976da /src/com/android/launcher3/BaseActivity.java | |
parent | c247a00e22d248ce7b1be492792d6f237ea64316 (diff) | |
download | android_packages_apps_Trebuchet-59d086c3ce5d9c3d800abca73762e82f2489cbec.tar.gz android_packages_apps_Trebuchet-59d086c3ce5d9c3d800abca73762e82f2489cbec.tar.bz2 android_packages_apps_Trebuchet-59d086c3ce5d9c3d800abca73762e82f2489cbec.zip |
Using surface rotation instead of insets to determine seascape configuration
Insets may not correctly indicate seascape configuration in multi-window or
when the presence of device-cutouts
Bug: 79376298
Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
Diffstat (limited to 'src/com/android/launcher3/BaseActivity.java')
-rw-r--r-- | src/com/android/launcher3/BaseActivity.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java index a41edc08b..bd38bf00d 100644 --- a/src/com/android/launcher3/BaseActivity.java +++ b/src/com/android/launcher3/BaseActivity.java @@ -213,19 +213,6 @@ public abstract class BaseActivity extends Activity { return mForceInvisible != 0; } - /** - * Sets the device profile, adjusting it accordingly in case of multi-window - */ - protected void setDeviceProfile(DeviceProfile dp) { - mDeviceProfile = dp; - if (isInMultiWindowModeCompat()) { - Display display = getWindowManager().getDefaultDisplay(); - Point mwSize = new Point(); - display.getSize(mwSize); - mDeviceProfile = mDeviceProfile.getMultiWindowProfile(this, mwSize); - } - } - public interface MultiWindowModeChangedListener { void onMultiWindowModeChanged(boolean isInMultiWindowMode); } |