From 8f6c925ae751e06232cfc636949eef74852cfbec Mon Sep 17 00:00:00 2001 From: Wale Ogunwale Date: Fri, 29 Apr 2016 16:46:47 -0700 Subject: [PATCH] Set ActivityInfo.resizeMode to RESIZE_MODE_RESIZEABLE by default Previous assumption was ActivityInfo was completely initialized in PackageParser, but that isn't the case with the ResolverActivity whose ActivityInfo in populated in PackageManagerService. This was causing the device to exist multi-window mode since the default ActivityInfo.resizeMode was 0 (RESIZE_MODE_UNRESIZEABLE). Bug: 28378995 Change-Id: I46e58d434f2a0274c461a8ff00b59ed3d2a1dd52 --- core/java/android/content/pm/ActivityInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/content/pm/ActivityInfo.java b/core/java/android/content/pm/ActivityInfo.java index 167befc089dd3..bdea1e009eb07 100644 --- a/core/java/android/content/pm/ActivityInfo.java +++ b/core/java/android/content/pm/ActivityInfo.java @@ -188,7 +188,7 @@ public class ActivityInfo extends ComponentInfo * See {@link android.R.attr#resizeableActivity}. * @hide */ - public int resizeMode; + public int resizeMode = RESIZE_MODE_RESIZEABLE; /** * Name of the VrListenerService component to run for this activity.