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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user