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

Commit 96a37f4f authored by Jason Monk's avatar Jason Monk
Browse files

Remove Dependency.get usages from OverviewProxyService

Test: atest SystemUITests
Change-Id: I0f44b3ddf145eb4f5f7c5032a91c73e2bcb96d57
parent 92d5c24e
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ import android.util.Log;
import android.view.MotionEvent;

import com.android.internal.policy.ScreenDecorationsUtils;
import com.android.systemui.Dependency;
import com.android.systemui.Dumpable;
import com.android.systemui.Prefs;
import com.android.systemui.SysUiServiceProvider;
@@ -90,8 +89,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
    private final Handler mHandler;
    private final Runnable mConnectionRunnable = this::internalConnectToCurrentUser;
    private final ComponentName mRecentsComponentName;
    private final DeviceProvisionedController mDeviceProvisionedController
            = Dependency.get(DeviceProvisionedController.class);
    private final DeviceProvisionedController mDeviceProvisionedController;
    private final List<OverviewProxyListener> mConnectionCallbacks = new ArrayList<>();
    private final Intent mQuickStepIntent;

@@ -343,9 +341,10 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
            = this::cleanupAfterDeath;

    @Inject
    public OverviewProxyService(Context context) {
    public OverviewProxyService(Context context, DeviceProvisionedController provisionController) {
        mContext = context;
        mHandler = new Handler();
        mDeviceProvisionedController = provisionController;
        mConnectionBackoffAttempts = 0;
        mRecentsComponentName = ComponentName.unflattenFromString(context.getString(
                com.android.internal.R.string.config_recentsComponentName));