Removing static instances of UserManagerCompat and AppWidgetManager

> Changing the lifecycle to follow other static objects in Launcher
> Removing compat interface and inlining everything to helpers

Bug: 141376165
Change-Id: I82bd5db1969101de9a7eac77f32728d70195bb35
This commit is contained in:
Sunny Goyal committed 2019-12-11 10:03:19 -08:00
1 parent ebc50f3095
commit 337c81f664
43 files changed
+385 -579

No files matched your search

@@ -41,6 +41,7 @@ import com.android.systemui.plugins.PluginListener;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Stream;
/**
* CustomWidgetManager handles custom widgets implemented as a plugin.
@@ -112,11 +113,11 @@ public class CustomWidgetManager implements PluginListener<CustomWidgetPlugin> {
}
/**
* Returns the list of custom widgets.
* Returns the stream of custom widgets.
*/
@NonNull
public List<CustomAppWidgetProviderInfo> getCustomWidgets() {
return mCustomWidgets;
public Stream<CustomAppWidgetProviderInfo> stream() {
return mCustomWidgets.stream();
}
/**