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

Commit d7cf9e36 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Workaround for not initializing StatusBar on TVs" into rvc-dev am: 88ad796f

Change-Id: I41a174b413d766040ff797d464fb47facf82954f
parents 9648359f 88ad796f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -147,7 +147,12 @@ public class VolumeDialogControllerImpl implements VolumeDialogController, Dumpa
    public VolumeDialogControllerImpl(Context context, BroadcastDispatcher broadcastDispatcher,
            Optional<Lazy<StatusBar>> statusBarOptionalLazy) {
        mContext = context.getApplicationContext();
        // TODO(b/150663459): remove this TV workaround once StatusBar is "unbound" on TVs
        if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
            mStatusBarOptionalLazy = Optional.empty();
        } else {
            mStatusBarOptionalLazy = statusBarOptionalLazy;
        }
        mNotificationManager = (NotificationManager) mContext.getSystemService(
                Context.NOTIFICATION_SERVICE);
        Events.writeEvent(Events.EVENT_COLLECTION_STARTED);