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
|
// TODO: Check if the action drawable has changed before we reload it
|
||||||
action.getIcon().loadDrawableAsync(this, d -> {
|
action.getIcon().loadDrawableAsync(this, d -> {
|
||||||
|
if (d != null) {
|
||||||
d.setTint(Color.WHITE);
|
d.setTint(Color.WHITE);
|
||||||
actionView.setImageDrawable(d);
|
actionView.setImageDrawable(d);
|
||||||
|
}
|
||||||
}, mHandler);
|
}, mHandler);
|
||||||
actionView.setContentDescription(action.getContentDescription());
|
actionView.setContentDescription(action.getContentDescription());
|
||||||
if (action.isEnabled()) {
|
if (action.isEnabled()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user