summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseActivity.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-05-07 17:31:40 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-05-07 17:32:46 -0700
commit59d086c3ce5d9c3d800abca73762e82f2489cbec (patch)
treea6ced495cc09f81894133b54aabd2ec87af976da /src/com/android/launcher3/BaseActivity.java
parentc247a00e22d248ce7b1be492792d6f237ea64316 (diff)
downloadandroid_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.java13
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);
}