Skip to content

Commit b641bf7

Browse files
wcshiafohrman
authored andcommitted
Avoid infinite loop in Chip#SetLayoutDirection.
PiperOrigin-RevId: 234604880
1 parent 8449d0e commit b641bf7

File tree

1 file changed

+1
-3
lines changed
  • lib/java/com/google/android/material/chip

1 file changed

+1
-3
lines changed

lib/java/com/google/android/material/chip/Chip.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,10 +1341,8 @@ public void setLayoutDirection(int layoutDirection) {
13411341
if (chipDrawable == null) {
13421342
return;
13431343
}
1344-
if (Build.VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
1344+
if (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR1) {
13451345
super.setLayoutDirection(layoutDirection);
1346-
} else {
1347-
ViewCompat.setLayoutDirection(this, layoutDirection);
13481346
}
13491347
}
13501348

0 commit comments

Comments
 (0)