diff options
| author | Fabrice Di Meglio <fdimeglio@google.com> | 2013-05-06 13:56:17 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-05-06 13:56:17 -0700 |
| commit | 7caa1a87fe5d8dd229b296323191eaf9326a6786 (patch) | |
| tree | 1ad3f20270e98fde6337fe7bbe43943629fb4a85 /core/java/android/view/View.java | |
| parent | 100ed154b79b96348087222550a59a8f3b944fa1 (diff) | |
| parent | a8549041ccdf38f8ddbdc5fc2bce84d737a89a7e (diff) | |
| download | frameworks_base-7caa1a87fe5d8dd229b296323191eaf9326a6786.zip frameworks_base-7caa1a87fe5d8dd229b296323191eaf9326a6786.tar.gz frameworks_base-7caa1a87fe5d8dd229b296323191eaf9326a6786.tar.bz2 | |
am a8549041: am 8c2e3a41: Merge "Optimize RTL properties resolution" into jb-mr2-dev
* commit 'a8549041ccdf38f8ddbdc5fc2bce84d737a89a7e':
Optimize RTL properties resolution
Diffstat (limited to 'core/java/android/view/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index ed6dc6c..25c380e 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -11764,10 +11764,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * Resolve all RTL related properties. * + * @return true if resolution of RTL properties has been done + * * @hide */ - public void resolveRtlPropertiesIfNeeded() { - if (!needRtlPropertiesResolution()) return; + public boolean resolveRtlPropertiesIfNeeded() { + if (!needRtlPropertiesResolution()) return false; // Order is important here: LayoutDirection MUST be resolved first if (!isLayoutDirectionResolved()) { @@ -11788,6 +11790,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, resolveDrawables(); } onRtlPropertiesChanged(getLayoutDirection()); + return true; } /** @@ -11840,6 +11843,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, /** * @return true if RTL properties need resolution. + * */ private boolean needRtlPropertiesResolution() { return (mPrivateFlags2 & ALL_RTL_PROPERTIES_RESOLVED) != ALL_RTL_PROPERTIES_RESOLVED; |
