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

Commit 82b44b24 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix ANR on ShorcutManager#getPinnedShortcuts" into sc-dev

parents 97e98f0e ebcabd9c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ import android.util.Log;
import androidx.annotation.VisibleForTesting;

import com.android.settings.Settings.CreateShortcutActivity;
import com.android.settingslib.utils.ThreadUtils;

import java.util.ArrayList;
import java.util.List;
@@ -62,7 +63,7 @@ public class SettingsInitialize extends BroadcastReceiver {
        final PackageManager pm = context.getPackageManager();
        managedProfileSetup(context, pm, broadcast, userInfo);
        webviewSettingSetup(context, pm, userInfo);
        refreshExistingShortcuts(context);
        ThreadUtils.postOnBackgroundThread(() -> refreshExistingShortcuts(context));
    }

    private void managedProfileSetup(Context context, final PackageManager pm, Intent broadcast,
@@ -142,5 +143,4 @@ public class SettingsInitialize extends BroadcastReceiver {
        }
        shortcutManager.updateShortcuts(updates);
    }

}