* commit '30e7f79bd0a5ab7cdf6c543668dfbda89c2b054e': Fix: TextView makes new layouts too frequently.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user