Don't wipe out TransformationMethod if not needed

Currently AppCompatTextHelper will call setAllCaps(..)
in the constructor. This will wipe out any previously
set TransformationMethod, such as textPassword, etc.

Fixed by only calling setAllCaps(true) if we need to.

BUG: 23947511
Change-Id: I13edcdc33326384e15f41c506fc0cf39d918ffba
diff --git a/v7/appcompat/src/android/support/v7/widget/AppCompatTextHelper.java b/v7/appcompat/src/android/support/v7/widget/AppCompatTextHelper.java
index 7a75e76..b18ca05 100644
--- a/v7/appcompat/src/android/support/v7/widget/AppCompatTextHelper.java
+++ b/v7/appcompat/src/android/support/v7/widget/AppCompatTextHelper.java
@@ -56,8 +56,8 @@
 
         // Now read the style's value
         a = context.obtainStyledAttributes(attrs, TEXT_APPEARANCE_ATTRS, defStyleAttr, 0);
-        if (a.hasValue(0)) {
-            setAllCaps(a.getBoolean(0, false));
+        if (a.getBoolean(0, false)) {
+            setAllCaps(true);
         }
         a.recycle();