diff options
| author | Adam Powell <adamp@google.com> | 2013-07-12 11:33:44 -0700 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2013-07-12 11:33:44 -0700 |
| commit | 258f8de22c59f484ce97ae5e52b90c443c28ac39 (patch) | |
| tree | 532cb4ae96c70cc910a0fb26e9f747929a8ef08b /core/java/android/view/View.java | |
| parent | 639f37e7abe47583a9de4e4bcc8586d79b6daabd (diff) | |
Tweak error fallback behavior for view direction resolution
If the required ViewParent methods aren't present for resolving text
direction or alignment, mark them resolved with default results and
skip further resolution steps.
Change-Id: I0ea6b0ce968cc24ffed77a2d1e66dfafbec49f9c
Diffstat (limited to 'core/java/android/view/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index fddc26cf83de..bcd8d5ce987e 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -17206,6 +17206,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } catch (AbstractMethodError e) { Log.e(VIEW_LOG_TAG, mParent.getClass().getSimpleName() + " does not fully implement ViewParent", e); + mPrivateFlags2 |= PFLAG2_TEXT_DIRECTION_RESOLVED | + PFLAG2_TEXT_DIRECTION_RESOLVED_DEFAULT; + return true; } // Set current resolved direction to the same value as the parent's one @@ -17435,6 +17438,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, } catch (AbstractMethodError e) { Log.e(VIEW_LOG_TAG, mParent.getClass().getSimpleName() + " does not fully implement ViewParent", e); + mPrivateFlags2 |= PFLAG2_TEXT_ALIGNMENT_RESOLVED | + PFLAG2_TEXT_ALIGNMENT_RESOLVED_DEFAULT; + return true; } int parentResolvedTextAlignment; |
