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

Commit 1e3b5a55 authored by James O'Leary's avatar James O'Leary Committed by android-build-team Robot
Browse files

Fix NPE with live wallpaper

Test: Verify WAI
Fixes: 133130262, 133194773, 133168135, 133160573
Change-Id: Ib38947326839a5c4806b909ead2484efd5a535a1
(cherry picked from commit 35cb43b8)
parent d2c1d3b4
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();