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

Commit c0c0bdbc authored by fbaron's avatar fbaron
Browse files

Fix null pointer in FloatingWidgetView

Flag: NONE
Test: NONE
Bug: 331868669
Change-Id: I350e6660ea1936bb9ee799c3d2c840c57876fef4
parent 41e4290d
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);
    }