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

Commit 36418424 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: Id1b474d904130720d522e3bc7b9a62f6ec0da751
parents 357c9389 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);