Fix credman provider not showing
Test: ondevice Bug: 281787107 Change-Id: I4cc4cc2216a7c452ee63cb742a292dadbd46714f
This commit is contained in:
@@ -16,12 +16,9 @@
|
|||||||
|
|
||||||
package com.android.settings.applications.credentials;
|
package com.android.settings.applications.credentials;
|
||||||
|
|
||||||
import android.content.ComponentName;
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.provider.Settings;
|
|
||||||
import android.text.TextUtils;
|
|
||||||
|
|
||||||
import com.android.settings.Utils;
|
import com.android.settings.Utils;
|
||||||
import com.android.settingslib.applications.DefaultAppInfo;
|
import com.android.settingslib.applications.DefaultAppInfo;
|
||||||
@@ -47,25 +44,6 @@ public class DefaultWorkCombinedPreferenceController extends DefaultCombinedPref
|
|||||||
return "default_credman_autofill_main_work";
|
return "default_credman_autofill_main_work";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected DefaultAppInfo getDefaultAppInfo() {
|
|
||||||
final String flattenComponent =
|
|
||||||
Settings.Secure.getStringForUser(
|
|
||||||
mContext.getContentResolver(),
|
|
||||||
DefaultCombinedPicker.AUTOFILL_SETTING,
|
|
||||||
mUserHandle.getIdentifier());
|
|
||||||
if (!TextUtils.isEmpty(flattenComponent)) {
|
|
||||||
DefaultAppInfo appInfo =
|
|
||||||
new DefaultAppInfo(
|
|
||||||
mContext,
|
|
||||||
mPackageManager,
|
|
||||||
mUserHandle.getIdentifier(),
|
|
||||||
ComponentName.unflattenFromString(flattenComponent));
|
|
||||||
return appInfo;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Intent getSettingIntent(DefaultAppInfo info) {
|
protected Intent getSettingIntent(DefaultAppInfo info) {
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
|
Reference in New Issue
Block a user