Merge "Fix NPE with live wallpaper" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c9fa07161a
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user