diff options
author | Vadim Caen <caen@google.com> | 2019-10-17 13:02:24 +0200 |
---|---|---|
committer | Vadim Caen <caen@google.com> | 2019-11-13 16:21:27 +0100 |
commit | 600e4908f87b5d129294afec75fd09b71211d45e (patch) | |
tree | a19d69054e055ed24d5a8c7d4c6101dacbde904d | |
parent | a3c0ea148c3dd09b6c2706a7c6c1606bdf195a51 (diff) |
Add OrientationConfig IntDef
Bug: N/A
Test: N/A
Change-Id: I6e33720339174e7426a231b597c2f6e0852f2e85
-rw-r--r-- | core/java/android/content/res/Configuration.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/content/res/Configuration.java b/core/java/android/content/res/Configuration.java index 053444b28f01..e43a2a2e1ce7 100644 --- a/core/java/android/content/res/Configuration.java +++ b/core/java/android/content/res/Configuration.java @@ -613,6 +613,16 @@ public final class Configuration implements Parcelable, Comparable<Configuration */ public int navigationHidden; + /** @hide **/ + @IntDef(prefix = {"ORIENTATION_"}, value = { + ORIENTATION_UNDEFINED, + ORIENTATION_PORTRAIT, + ORIENTATION_LANDSCAPE, + ORIENTATION_SQUARE + }) + public @interface Orientation { + } + /** Constant for {@link #orientation}: a value indicating that no value has been set. */ public static final int ORIENTATION_UNDEFINED = 0; /** Constant for {@link #orientation}, value corresponding to the @@ -630,6 +640,7 @@ public final class Configuration implements Parcelable, Comparable<Configuration * Overall orientation of the screen. May be one of * {@link #ORIENTATION_LANDSCAPE}, {@link #ORIENTATION_PORTRAIT}. */ + @Orientation public int orientation; /** Constant for {@link #uiMode}: bits that encode the mode type. */ |