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

Commit 5ad572e1 authored by James O'Leary's avatar James O'Leary Committed by android-build-merger
Browse files

Merge "Fix NPE with live wallpaper" into qt-dev am: c9fa0716

am: a55ddc80

Change-Id: I56824b12eb36b8292a7d8c91eea6a5087106c2e9
parents e2c7fd3a a55ddc80
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();