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

This commit is contained in:
Ben Lin
2020-11-05 23:58:38 +00:00
committed by Android (Google) Code Review

View File

@@ -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.