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

Commit 6128932d authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE with live wallpaper"

parents 68417df3 96a563e8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -136,8 +136,12 @@ final class PhoneStateMonitor {
    }

    private boolean isLauncherShowing(ActivityManager.RunningTaskInfo runningTaskInfo) {
        if (runningTaskInfo == null) {
            return false;
        } else {
            return runningTaskInfo.topActivity.equals(mDefaultHome);
        }
    }

    private boolean isAppImmersive() {
        return SysUiServiceProvider.getComponent(mContext, StatusBar.class).inImmersiveMode();