am a9854ce9
: am ce463847
: Merge "Fix bug #7651552 resetRtlProperties() is called way too often" into jb-mr1.1-dev
* commit 'a9854ce9dfac086533e9d49ac75076bcc579303b': Fix bug #7651552 resetRtlProperties() is called way too often
This commit is contained in:
@ -11856,8 +11856,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
|
||||
mCurrentAnimation = null;
|
||||
|
||||
resetRtlProperties();
|
||||
onRtlPropertiesChanged(LAYOUT_DIRECTION_DEFAULT);
|
||||
resetAccessibilityStateChanged();
|
||||
}
|
||||
|
||||
|
@ -3620,8 +3620,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
childHasTransientStateChanged(view, false);
|
||||
}
|
||||
|
||||
view.resetRtlProperties();
|
||||
|
||||
onViewRemoved(view);
|
||||
|
||||
needGlobalAttributesUpdate(false);
|
||||
@ -5368,21 +5366,6 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@Override
|
||||
public void resetRtlProperties() {
|
||||
super.resetRtlProperties();
|
||||
int count = getChildCount();
|
||||
for (int i = 0; i < count; i++) {
|
||||
final View child = getChildAt(i);
|
||||
if (child.isLayoutDirectionInherited()) {
|
||||
child.resetRtlProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
|
Reference in New Issue
Block a user