Merge "Remove wrapper class for AutofillManager in Settings" into pi-dev am: e33ff4e97c

am: 57df7c2c59

Change-Id: If736611ced421e396408de5ab575bdad58e8def1
This commit is contained in:
Fan Zhang
2018-03-31 07:45:06 +00:00
committed by android-build-merger
3 changed files with 6 additions and 67 deletions

View File

@@ -23,22 +23,22 @@ import android.provider.Settings;
import android.text.TextUtils;
import android.view.autofill.AutofillManager;
import com.android.settings.wrapper.AutofillManagerWrapper;
import com.android.settingslib.applications.DefaultAppInfo;
public class DefaultAutofillPreferenceController extends DefaultAppPreferenceController {
private AutofillManagerWrapper mAutofillManager;
private final AutofillManager mAutofillManager;
public DefaultAutofillPreferenceController(Context context) {
super(context);
mAutofillManager = new AutofillManagerWrapper(
mContext.getSystemService(AutofillManager.class));
mAutofillManager = mContext.getSystemService(AutofillManager.class);
}
@Override
public boolean isAvailable() {
return mAutofillManager.hasAutofillFeature()
return mAutofillManager != null
&& mAutofillManager.hasAutofillFeature()
&& mAutofillManager.isAutofillSupported();
}