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

Commit cec9a175 authored by Justin Chung's avatar Justin Chung
Browse files

Stop SearchUI service if not in use

Bug: 285368459
Test: manual from Wear device - adb shell service list | grep search_ui
Test: atest CtsSearchUiServiceTestCases
Change-Id: I3f6f8b842d9f14fdac93b717eacf137b680a3c9c
parent 8b53a5e6
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1938,10 +1938,11 @@ public final class SystemServer implements Dumpable {
            }

            // Search UI manager service
            // TODO: add deviceHasConfigString(context, R.string.config_defaultSearchUiService)
            if (deviceHasConfigString(context, R.string.config_defaultSearchUiService)) {
                t.traceBegin("StartSearchUiService");
                mSystemServiceManager.startService(SEARCH_UI_MANAGER_SERVICE_CLASS);
                t.traceEnd();
            }

            // Smartspace manager service
            // TODO: add deviceHasConfigString(context, R.string.config_defaultSmartspaceService)