Fix SDK int check in TextInputLayout

am: bdb210a

* commit 'bdb210a52ce1966368f534253822f15a8591a74f':
  Fix SDK int check in TextInputLayout

Change-Id: I9a59cb7994f422c838a44ed4311da459d0f75203

GitOrigin-RevId=ebb9b8cfda9e643d77e3bf15ed10efd2ae55227e

PiperOrigin-RevId: 140560726
This commit is contained in:
Chris Banes 2016-11-30 04:03:51 +00:00 committed by Travis Collins
parent 5148bbcbd0
commit ff6063c1db

View File

@ -725,7 +725,7 @@ public class TextInputLayout extends LinearLayout {
private void ensureBackgroundDrawableStateWorkaround() {
final int sdk = Build.VERSION.SDK_INT;
if (sdk != 21 || sdk != 22) {
if (sdk != 21 && sdk != 22) {
// The workaround is only required on API 21-22
return;
}