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

Commit e0cf6e44 authored by Ben Lin's avatar Ben Lin
Browse files

PiP: Early return on MenusAlgorithm if there are no views.

If there are any missing views, there's nothing to do.

Bug: 161760276
Test: None
Change-Id: If63a1e855b1924dab981dd55b7bc663ed9ee26e5
parent 41627475
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ public class PipMenuIconsAlgorithm {
        if (mViewRoot == null || mTopEndContainer == null || mDragHandle == null
                || mSettingsButton == null || mDismissButton == null) {
            Log.e(TAG, "One if the required views is null.");
            return;
        }

        //We only need to calculate the layout once since it does not change.