Merge "Check for null when getting PiP action item drawables." into rvc-qpr-dev

This commit is contained in:
TreeHugger Robot
2020-09-25 18:07:51 +00:00
committed by Android (Google) Code Review

View File

@@ -562,8 +562,10 @@ public class PipMenuActivity extends Activity {
// TODO: Check if the action drawable has changed before we reload it
action.getIcon().loadDrawableAsync(this, 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()) {