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

Commit 122d8445 authored by Adrian Roos's avatar Adrian Roos
Browse files

Revert "Add null check for vrManager"

This reverts commit 7a5a757c.
Bug: 112064298
Change-Id: Ieda9c99dcaf3d577e385015bd42b93d36630ee0c
parent ae8fd62f
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -732,13 +732,11 @@ public class StatusBar extends SystemUI implements DemoMode,

        IVrManager vrManager = IVrManager.Stub.asInterface(ServiceManager.getService(
                Context.VR_SERVICE));
        if (vrManager != null) {
        try {
            vrManager.registerListener(mVrStateCallbacks);
        } catch (RemoteException e) {
            Slog.e(TAG, "Failed to register VR mode state listener: " + e);
        }
        }

        IWallpaperManager wallpaperManager = IWallpaperManager.Stub.asInterface(
                ServiceManager.getService(Context.WALLPAPER_SERVICE));