mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Merge "Fix null pointer in FloatingWidgetView" into 24D1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c5fec774b2
@@ -305,7 +305,8 @@ public class FloatingWidgetView extends FrameLayout implements AnimatorListener,
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user