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

Commit 5c138bb3 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [7656695, 7656767] into qt-c2f2-release

Change-Id: Ic078934f90bcf8309b007e33d60b29c1a2f4294f
parents d2c1d3b4 1e3b5a55
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -136,8 +136,12 @@ final class PhoneStateMonitor {
    }
    }


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


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