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

Commit 88ad796f authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov Committed by Android (Google) Code Review
Browse files

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

parents e3392189 d1789c60
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);