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

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

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

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

Change-Id: I505eeb289ec97cba9ae7be6a5c2978c3104b4a33
parents 210a616e 15eb4151
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);