Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a5ec887 authored by Becca Hughes's avatar Becca Hughes
Browse files

Fix credman provider not showing

Test: ondevice
Bug: 281787107
Change-Id: I4cc4cc2216a7c452ee63cb742a292dadbd46714f
parent 347c1655
Loading
Loading
Loading
Loading
+0 −22
Original line number Original line Diff line number Diff line
@@ -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) {