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

Commit 02dd17da authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Fix 5389072: NPE in MediaController.updateFloatingWindowLayout().

There was another constructor which we didn't add the call to
initialize the layout.

Change-Id: I1519c9afd7d6333736fe19d256f55a2f4cdc60c3
parent a53d19dc
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -113,15 +113,12 @@ public class MediaController extends FrameLayout {
        super(context);
        mContext = context;
        mUseFastForward = useFastForward;
        initFloatingWindowLayout();
        initFloatingWindow();
    }

    public MediaController(Context context) {
        super(context);
        mContext = context;
        mUseFastForward = true;
        initFloatingWindow();
        initFloatingWindowLayout();
        this(context, true);
    }

    private void initFloatingWindow() {