Loading src/com/android/settings/applications/defaultapps/DefaultAutofillPicker.java +0 −27 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.content.pm.ServiceInfo; import android.provider.Settings; import android.service.autofill.AutoFillService; import android.service.autofill.AutofillService; import android.service.autofill.AutofillServiceInfo; import android.text.TextUtils; Loading @@ -36,8 +35,6 @@ import java.util.List; public class DefaultAutofillPicker extends DefaultAppPickerFragment { static final String SETTING = Settings.Secure.AUTOFILL_SERVICE; // TODO(b/35956626): remove once clients migrated static final Intent OLD_AUTO_FILL_PROBE = new Intent(AutoFillService.OLD_SERVICE_INTERFACE); static final Intent AUTOFILL_PROBE = new Intent(AutofillService.SERVICE_INTERFACE); @Override Loading @@ -59,12 +56,6 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment { candidates.add(new DefaultAppInfo(mPm, mUserId, new ComponentName( info.serviceInfo.packageName, info.serviceInfo.name))); } final List<ResolveInfo> oldResolveInfos = mPm.getPackageManager() .queryIntentServices(OLD_AUTO_FILL_PROBE, PackageManager.GET_META_DATA); for (ResolveInfo info : oldResolveInfos) { candidates.add(new DefaultAppInfo(mPm, mUserId, new ComponentName( info.serviceInfo.packageName, info.serviceInfo.name))); } return candidates; } Loading Loading @@ -122,24 +113,6 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment { } } final List<ResolveInfo> oldResolveInfos = mPackageManager.queryIntentServices( OLD_AUTO_FILL_PROBE, PackageManager.GET_META_DATA); for (ResolveInfo resolveInfo : oldResolveInfos) { final ServiceInfo serviceInfo = resolveInfo.serviceInfo; final String flattenKey = new ComponentName( serviceInfo.packageName, serviceInfo.name).flattenToString(); if (TextUtils.equals(mSelectedKey, flattenKey)) { final String settingsActivity = new AutofillServiceInfo( mPackageManager, serviceInfo) .getSettingsActivity(); if (TextUtils.isEmpty(settingsActivity)) { return null; } return new Intent(Intent.ACTION_MAIN).setComponent( new ComponentName(serviceInfo.packageName, settingsActivity)); } } return null; } } Loading Loading
src/com/android/settings/applications/defaultapps/DefaultAutofillPicker.java +0 −27 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.content.pm.ServiceInfo; import android.provider.Settings; import android.service.autofill.AutoFillService; import android.service.autofill.AutofillService; import android.service.autofill.AutofillServiceInfo; import android.text.TextUtils; Loading @@ -36,8 +35,6 @@ import java.util.List; public class DefaultAutofillPicker extends DefaultAppPickerFragment { static final String SETTING = Settings.Secure.AUTOFILL_SERVICE; // TODO(b/35956626): remove once clients migrated static final Intent OLD_AUTO_FILL_PROBE = new Intent(AutoFillService.OLD_SERVICE_INTERFACE); static final Intent AUTOFILL_PROBE = new Intent(AutofillService.SERVICE_INTERFACE); @Override Loading @@ -59,12 +56,6 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment { candidates.add(new DefaultAppInfo(mPm, mUserId, new ComponentName( info.serviceInfo.packageName, info.serviceInfo.name))); } final List<ResolveInfo> oldResolveInfos = mPm.getPackageManager() .queryIntentServices(OLD_AUTO_FILL_PROBE, PackageManager.GET_META_DATA); for (ResolveInfo info : oldResolveInfos) { candidates.add(new DefaultAppInfo(mPm, mUserId, new ComponentName( info.serviceInfo.packageName, info.serviceInfo.name))); } return candidates; } Loading Loading @@ -122,24 +113,6 @@ public class DefaultAutofillPicker extends DefaultAppPickerFragment { } } final List<ResolveInfo> oldResolveInfos = mPackageManager.queryIntentServices( OLD_AUTO_FILL_PROBE, PackageManager.GET_META_DATA); for (ResolveInfo resolveInfo : oldResolveInfos) { final ServiceInfo serviceInfo = resolveInfo.serviceInfo; final String flattenKey = new ComponentName( serviceInfo.packageName, serviceInfo.name).flattenToString(); if (TextUtils.equals(mSelectedKey, flattenKey)) { final String settingsActivity = new AutofillServiceInfo( mPackageManager, serviceInfo) .getSettingsActivity(); if (TextUtils.isEmpty(settingsActivity)) { return null; } return new Intent(Intent.ACTION_MAIN).setComponent( new ComponentName(serviceInfo.packageName, settingsActivity)); } } return null; } } Loading