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

Commit d0f407aa authored by Winson Chung's avatar Winson Chung
Browse files

Ensure we always bind to overview service when starting up

- Previously, the registration of the device provisioned callback
  triggered the overview service to be started, but the switch
  to current user tracker removed that path

Bug: 158321453
Test: Kill sysui and verify we start the service
Change-Id: I9221389b0b1ef3298a93ed8daae7e026bcf772e8
parent d04af4c0
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -577,10 +577,6 @@ public class OverviewProxyService extends CurrentUserTracker implements
        // Listen for nav bar mode changes
        mNavBarMode = navModeController.addListener(this);

        // Listen for device provisioned/user setup
        updateEnabledState();
        startTracking();

        // Listen for launcher package changes
        IntentFilter filter = new IntentFilter(Intent.ACTION_PACKAGE_ADDED);
        filter.addDataScheme("package");
@@ -601,6 +597,13 @@ public class OverviewProxyService extends CurrentUserTracker implements
                        .commitUpdate(mContext.getDisplayId());
            }
        });

        // Listen for user setup
        startTracking();

        // Connect to the service
        updateEnabledState();
        startConnectionToCurrentUser();
    }

    @Override