Revert "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck"
This reverts commit 4db94a0a62.
Reason for revert: Performance regression found: b/261773357. I'll rework this with a completely separated thread.
Change-Id: I1ea65fdeeeb1693ba283f446dee9ba92d148442d
Fixes: 261773357
This commit is contained in:
@@ -68,7 +68,7 @@ import com.android.systemui.Dumpable;
|
||||
import com.android.systemui.R;
|
||||
import com.android.systemui.broadcast.BroadcastDispatcher;
|
||||
import com.android.systemui.dagger.SysUISingleton;
|
||||
import com.android.systemui.dagger.qualifiers.LongRunning;
|
||||
import com.android.systemui.dagger.qualifiers.Background;
|
||||
import com.android.systemui.dagger.qualifiers.Main;
|
||||
import com.android.systemui.demomode.DemoMode;
|
||||
import com.android.systemui.demomode.DemoModeController;
|
||||
@@ -226,15 +226,12 @@ public class NetworkControllerImpl extends BroadcastReceiver
|
||||
|
||||
/**
|
||||
* Construct this controller object and register for updates.
|
||||
*
|
||||
* {@code @LongRunning} looper and bgExecutor instead {@code @Background} ones are used to
|
||||
* address the b/246456655. This can be reverted after b/240663726 is fixed.
|
||||
*/
|
||||
@Inject
|
||||
public NetworkControllerImpl(
|
||||
Context context,
|
||||
@LongRunning Looper bgLooper,
|
||||
@LongRunning Executor bgExecutor,
|
||||
@Background Looper bgLooper,
|
||||
@Background Executor bgExecutor,
|
||||
SubscriptionManager subscriptionManager,
|
||||
CallbackHandler callbackHandler,
|
||||
DeviceProvisionedController deviceProvisionedController,
|
||||
|
||||
Reference in New Issue
Block a user