am 30e7f79b: am 1384d1d9: Merge "Fix: TextView makes new layouts too frequently." into mnc-dev

* commit '30e7f79bd0a5ab7cdf6c543668dfbda89c2b054e':
  Fix: TextView makes new layouts too frequently.
This commit is contained in:
Keisuke Kuroyanagi
2015-06-23 20:46:24 +00:00
committed by Android Git Automerger

View File

@@ -9443,10 +9443,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
public void onRtlPropertiesChanged(int layoutDirection) {
super.onRtlPropertiesChanged(layoutDirection);
mTextDir = getTextDirectionHeuristic();
if (mLayout != null) {
checkForRelayout();
final TextDirectionHeuristic newTextDir = getTextDirectionHeuristic();
if (mTextDir != newTextDir) {
mTextDir = newTextDir;
if (mLayout != null) {
checkForRelayout();
}
}
}