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

Commit 9462c3b6 authored by Federico Baron's avatar Federico Baron Committed by Android (Google) Code Review
Browse files

Merge "Fix null pointer in FloatingWidgetView" into main

parents 8687018b c0c0bdbc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }