Merge "Enable "auto rotate" for resizable AVD" into sc-v2-dev am: 881e6d0264

Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/16029130

Change-Id: I1ffb923a21f0544b4c7ce3f3e96f973c2d04d931
This commit is contained in:
Huan Song
2021-10-12 23:01:02 +00:00
committed by Automerger Merge Worker

View File

@@ -96,6 +96,9 @@ public class DefaultActivity extends Activity {
Settings.Global.putString(getContentResolver(), Settings.Global.DEVELOPMENT_ENABLE_FREEFORM_WINDOWS_SUPPORT, "1");
Settings.Global.putString(getContentResolver(), Settings.Global.DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES, "1");
Settings.Global.putString(getContentResolver(), Settings.Global.DEVELOPMENT_WM_DISPLAY_SETTINGS_PATH, "vendor/etc/display_settings_freeform.xml");
} else if ("resizable".equals(displaySettingsName)) {
// Enable auto rotate for resizable AVD
Settings.System.putString(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION, "1");
}
}