commit | c0c0bdbc38dc7e021aac6e9aaa15e03955789656 | [log] [tgz] |
---|---|---|
author | fbaron <fbaron@google.com> | Mon Apr 01 13:17:49 2024 -0700 |
committer | fbaron <fbaron@google.com> | Mon Apr 01 13:17:49 2024 -0700 |
tree | 66200508942f3a83e988acca67d42ac7ca73b9b9 | |
parent | 41e4290d9f462557f6e6b05343aad47ed03f8955 [diff] |
Fix null pointer in FloatingWidgetView Flag: NONE Test: NONE Bug: 331868669 Change-Id: I350e6660ea1936bb9ee799c3d2c840c57876fef4
diff --git a/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java b/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java index 6431bdf..486fc2c 100644 --- a/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java +++ b/quickstep/src/com/android/quickstep/views/FloatingWidgetView.java
@@ -305,7 +305,8 @@ */ public static int getDefaultBackgroundColor( Context context, RemoteAnimationTarget target) { - return (target != null && target.taskInfo.taskDescription != null) + return (target != null && target.taskInfo != null + && target.taskInfo.taskDescription != null) ? target.taskInfo.taskDescription.getBackgroundColor() : Themes.getColorBackground(context); }