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

Commit c3f2588f authored by Pinyao Ting's avatar Pinyao Ting Committed by Android (Google) Code Review
Browse files

Merge "Refrain from creating app-search schema unnecessarily." into sc-dev

parents 4f373fee 9b129854
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -333,10 +333,7 @@ class ShortcutUser {

        if (!shortcutPackage.rescanPackageIfNeeded(isNewApp, forceRescan)) {
            if (isNewApp) {
                final ShortcutPackage sp = mPackages.remove(packageName);
                if (sp != null) {
                    sp.removeShortcuts();
                }
                mPackages.remove(packageName);
            }
        }
    }