Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b92005d authored by Graciela Wissen Putri's avatar Graciela Wissen Putri
Browse files

Add fullscreen option in UserMinAspectRatio

Bug: 291900454
Test: presubmit
Change-Id: I66ad8c089dbe99467cb989fc009a636de7cf181e
parent 1e68575d
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -2354,6 +2354,7 @@ public abstract class PackageManager {
            USER_MIN_ASPECT_RATIO_4_3,
            USER_MIN_ASPECT_RATIO_16_9,
            USER_MIN_ASPECT_RATIO_3_2,
            USER_MIN_ASPECT_RATIO_FULLSCREEN,
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface UserMinAspectRatio {}
@@ -2375,8 +2376,9 @@ public abstract class PackageManager {

    /**
     * Aspect ratio override code: user forces app to the aspect ratio of the device display size.
     * This will be the portrait aspect ratio of the device if the app is portrait or the landscape
     * aspect ratio of the device if the app is landscape.
     * This will be the portrait aspect ratio of the device if the app has fixed portrait
     * orientation or the landscape aspect ratio of the device if the app has fixed landscape
     * orientation.
     *
     * @hide
     */
@@ -2400,6 +2402,12 @@ public abstract class PackageManager {
     */
    public static final int USER_MIN_ASPECT_RATIO_3_2 = 5;

    /**
     * Aspect ratio override code: user forces app to fullscreen
     * @hide
     */
    public static final int USER_MIN_ASPECT_RATIO_FULLSCREEN = 6;

    /** @hide */
    @IntDef(flag = true, prefix = { "DELETE_" }, value = {
            DELETE_KEEP_DATA,