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
This commit is contained in:
Wale Ogunwale
2016-04-29 16:46:47 -07:00
parent d971a9d5f2
commit 8f6c925ae7

View File

@@ -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.