Ensure that CommandQueue is a singleton.

Bug: 143844964
Test: manual
Change-Id: Ic3dd6dd98dcd941e2c154fd215691b722015de4c
This commit is contained in:
Dave Mankoff
2019-11-05 19:04:59 -05:00
parent 9fa5bfd761
commit 882cfee15e

View File

@@ -18,6 +18,8 @@ package com.android.systemui.statusbar;
import android.content.Context;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
@@ -30,6 +32,7 @@ public class StatusBarDependenciesModule {
* Provides our instance of CommandQueue which is considered optional.
*/
@Provides
@Singleton
public CommandQueue provideCommandQueue(Context context) {
return new CommandQueue(context);
}