Loading core/java/android/view/View.java +14 −0 Original line number Diff line number Diff line Loading @@ -806,6 +806,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ private static boolean sAlwaysRemeasureExactly = false; /** * Relax constraints around whether setLayoutParams() must be called after * modifying the layout params. */ private static boolean sLayoutParamsAlwaysChanged = false; /** * This view does not want keystrokes. Use with TAKES_FOCUS_MASK when * calling setFlags. Loading Loading @@ -3975,6 +3981,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // modes, so we always need to run an additional EXACTLY pass. sAlwaysRemeasureExactly = targetSdkVersion <= M; // Prior to N, layout params could change without requiring a // subsequent call to setLayoutParams() and they would usually // work. Partial layout breaks this assumption. sLayoutParamsAlwaysChanged = targetSdkVersion <= M; sCompatibilityDone = true; } } Loading Loading @@ -16904,6 +16915,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @return true if this view's LayoutParams changed since last layout. */ public final boolean didLayoutParamsChange() { if (sLayoutParamsAlwaysChanged) { return true; } return (mPrivateFlags3 & PFLAG3_LAYOUT_PARAMS_CHANGED) == PFLAG3_LAYOUT_PARAMS_CHANGED; } Loading
core/java/android/view/View.java +14 −0 Original line number Diff line number Diff line Loading @@ -806,6 +806,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ private static boolean sAlwaysRemeasureExactly = false; /** * Relax constraints around whether setLayoutParams() must be called after * modifying the layout params. */ private static boolean sLayoutParamsAlwaysChanged = false; /** * This view does not want keystrokes. Use with TAKES_FOCUS_MASK when * calling setFlags. Loading Loading @@ -3975,6 +3981,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, // modes, so we always need to run an additional EXACTLY pass. sAlwaysRemeasureExactly = targetSdkVersion <= M; // Prior to N, layout params could change without requiring a // subsequent call to setLayoutParams() and they would usually // work. Partial layout breaks this assumption. sLayoutParamsAlwaysChanged = targetSdkVersion <= M; sCompatibilityDone = true; } } Loading Loading @@ -16904,6 +16915,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @return true if this view's LayoutParams changed since last layout. */ public final boolean didLayoutParamsChange() { if (sLayoutParamsAlwaysChanged) { return true; } return (mPrivateFlags3 & PFLAG3_LAYOUT_PARAMS_CHANGED) == PFLAG3_LAYOUT_PARAMS_CHANGED; }