Merge "Check for null when getting PiP action item drawables."

This commit is contained in:
TreeHugger Robot
2020-09-23 00:41:57 +00:00
committed by Android (Google) Code Review

View File

@@ -394,8 +394,10 @@ public class PipMenuView extends FrameLayout {
// TODO: Check if the action drawable has changed before we reload it
action.getIcon().loadDrawableAsync(mContext, d -> {
d.setTint(Color.WHITE);
actionView.setImageDrawable(d);
if (d != null) {
d.setTint(Color.WHITE);
actionView.setImageDrawable(d);
}
}, mHandler);
actionView.setContentDescription(action.getContentDescription());
if (action.isEnabled()) {