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

Commit 033f4b95 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "Add null check for vrManager"""

parents ba779ca7 483befe0
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -732,11 +732,13 @@ 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));