diff options
| author | Felipe Leme <felipeal@google.com> | 2017-03-06 15:44:06 -0800 |
|---|---|---|
| committer | Felipe Leme <felipeal@google.com> | 2017-03-09 08:14:49 -0800 |
| commit | 640f30a7763b0a4b80c767acb84c740aac04768b (patch) | |
| tree | 2d49838983fb5d64caafe4dd11964991ddea6a17 /core/java/android/widget/RadioGroup.java | |
| parent | 16539f33785b59fa809295ec7def782983664489 (diff) | |
Replaced auto-fill by autofill to keep it consistent with API style.
This change will affects 2 types of apps: autofill service implementations
and apps that use autofill APIs.
Since just the former is known to be used at the moment, we're not trying
to keep backward compatibility with the latter.
Bug: 35956626
Test: CtsAutoFillServiceTestCases pass
Test: android.provider.SettingsBackupTest pass
Change-Id: Ia720083508716deae9e887f9faa7ae7c5a82f471
Diffstat (limited to 'core/java/android/widget/RadioGroup.java')
| -rw-r--r-- | core/java/android/widget/RadioGroup.java | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/core/java/android/widget/RadioGroup.java b/core/java/android/widget/RadioGroup.java index bb8cd2829caa..bd62d6ceac3f 100644 --- a/core/java/android/widget/RadioGroup.java +++ b/core/java/android/widget/RadioGroup.java @@ -16,7 +16,6 @@ package android.widget; - import android.annotation.IdRes; import android.content.Context; import android.content.res.TypedArray; @@ -25,8 +24,8 @@ import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.view.ViewStructure; -import android.view.autofill.AutoFillManager; -import android.view.autofill.AutoFillValue; +import android.view.autofill.AutofillManager; +import android.view.autofill.AutofillValue; import com.android.internal.R; @@ -67,7 +66,7 @@ public class RadioGroup extends LinearLayout { private PassThroughHierarchyChangeListener mPassThroughListener; // Indicates whether the child was set from resources or dynamically, so it can be used - // to sanitize auto-fill requests. + // to sanitize autofill requests. private int mInitialCheckedId = View.NO_ID; /** @@ -187,7 +186,7 @@ public class RadioGroup extends LinearLayout { if (mOnCheckedChangeListener != null) { mOnCheckedChangeListener.onCheckedChanged(this, mCheckedId); } - final AutoFillManager afm = mContext.getSystemService(AutoFillManager.class); + final AutofillManager afm = mContext.getSystemService(AutofillManager.class); if (afm != null) { afm.valueChanged(this); } @@ -417,16 +416,16 @@ public class RadioGroup extends LinearLayout { } } - // TODO(b/33197203): add unit/CTS tests for auto-fill methods (and make sure they handle enable) + // TODO(b/33197203): add unit/CTS tests for autofill methods (and make sure they handle enable) @Override - public void onProvideAutoFillStructure(ViewStructure structure, int flags) { - super.onProvideAutoFillStructure(structure, flags); + public void onProvideAutofillStructure(ViewStructure structure, int flags) { + super.onProvideAutofillStructure(structure, flags); structure.setSanitized(mCheckedId == mInitialCheckedId); } @Override - public void autoFill(AutoFillValue value) { + public void autofill(AutofillValue value) { if (!isEnabled()) return; final int index = value.getListValue(); @@ -444,14 +443,14 @@ public class RadioGroup extends LinearLayout { } @Override - public AutoFillValue getAutoFillValue() { + public AutofillValue getAutofillValue() { if (!isEnabled()) return null; final int count = getChildCount(); for (int i = 0; i < count; i++) { final View child = getChildAt(i); if (child.getId() == mCheckedId) { - return AutoFillValue.forList(i); + return AutofillValue.forList(i); } } return null; |
