@@ -1864,7 +1864,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
18641864
18651865 /**
18661866 * Default horizontal layout direction.
1867- * @hide
18681867 */
18691868 private static final int LAYOUT_DIRECTION_DEFAULT = LAYOUT_DIRECTION_INHERIT;
18701869
@@ -1914,7 +1913,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
19141913 /**
19151914 * Default text direction is inherited
19161915 */
1917- public static int TEXT_DIRECTION_DEFAULT = TEXT_DIRECTION_INHERIT;
1916+ private static final int TEXT_DIRECTION_DEFAULT = TEXT_DIRECTION_INHERIT;
19181917
19191918 /**
19201919 * Bit shift to get the horizontal layout direction. (bits after LAYOUT_DIRECTION_RESOLVED)
@@ -2024,7 +2023,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
20242023 /**
20252024 * Default text alignment is inherited
20262025 */
2027- public static int TEXT_ALIGNMENT_DEFAULT = TEXT_ALIGNMENT_GRAVITY;
2026+ private static final int TEXT_ALIGNMENT_DEFAULT = TEXT_ALIGNMENT_GRAVITY;
20282027
20292028 /**
20302029 * Bit shift to get the horizontal layout direction. (bits after DRAG_HOVERED)
@@ -3224,7 +3223,7 @@ public View(Context context) {
32243223 mContext = context;
32253224 mResources = context != null ? context.getResources() : null;
32263225 mViewFlags = SOUND_EFFECTS_ENABLED | HAPTIC_FEEDBACK_ENABLED;
3227- // Set layout and text direction defaults
3226+ // Set some flags defaults
32283227 mPrivateFlags2 =
32293228 (LAYOUT_DIRECTION_DEFAULT << PFLAG2_LAYOUT_DIRECTION_MASK_SHIFT) |
32303229 (TEXT_DIRECTION_DEFAULT << PFLAG2_TEXT_DIRECTION_MASK_SHIFT) |
0 commit comments