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

Commit a9acc019 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Logspam: Properly handle optional app widgets service" am: d85adb46

parents b34cf769 d85adb46
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1019,9 +1019,10 @@ public final class SystemServiceRegistry {
        registerService(Context.APPWIDGET_SERVICE, AppWidgetManager.class,
                new CachedServiceFetcher<AppWidgetManager>() {
            @Override
            public AppWidgetManager createService(ContextImpl ctx) throws ServiceNotFoundException {
                IBinder b = ServiceManager.getServiceOrThrow(Context.APPWIDGET_SERVICE);
                return new AppWidgetManager(ctx, IAppWidgetService.Stub.asInterface(b));
            public AppWidgetManager createService(ContextImpl ctx) {
                IBinder b = ServiceManager.getService(Context.APPWIDGET_SERVICE);
                return b == null ? null : new AppWidgetManager(ctx,
                        IAppWidgetService.Stub.asInterface(b));
            }});

        registerService(Context.MIDI_SERVICE, MidiManager.class,