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

Commit fe0f2e84 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Refrain from persisting shortcuts into AppSearch in low end device

As observed in b/220133968, on low-end devices, persisting shortcut into
AppSearch on a background thread introduces 50ms delay on app start time.

Given that there isn't a clear product roadmap for such feature to work
on Go devices, we will disable the integration until we have a concrete
demand for such feature that justfies the performance cost on low end
devices.

Bug: 220133968
Test: atest CtsShortcutManagerTestCases
Change-Id: I10339b3b3211b20994a8bca581504ea609b985ee
parent 1b9e95e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -488,7 +488,8 @@ public class ShortcutService extends IShortcutService.Stub {
        mShortcutBitmapSaver = new ShortcutBitmapSaver(this);
        mShortcutDumpFiles = new ShortcutDumpFiles(this);
        mIsAppSearchEnabled = DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
                SystemUiDeviceConfigFlags.SHORTCUT_APPSEARCH_INTEGRATION, true);
                SystemUiDeviceConfigFlags.SHORTCUT_APPSEARCH_INTEGRATION, true)
                && !injectIsLowRamDevice();

        if (onlyForPackageManagerApis) {
            return; // Don't do anything further.  For unit tests only.