Merge "Check for null when getting PiP action item drawables." into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
369ecdd88c
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user