diff options
author | Vadim Caen <caen@google.com> | 2019-11-13 17:12:10 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-11-13 17:12:10 +0000 |
commit | fce6ba29b48830099fe2d3213ef8de3f3b483961 (patch) | |
tree | e5eab8ae58afcac42026d1fdad697acef4db46f9 | |
parent | cfff0328496198554579431378a206f2dae57e5d (diff) | |
parent | 600e4908f87b5d129294afec75fd09b71211d45e (diff) |
Merge "Add OrientationConfig IntDef"
-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 eb7d01109dc1..5a45d9f1bf46 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. */ |