Ensure that we tint PiP actions to be consistent.

Test: Launch PiP with actions, ensure they are white
Bug: 34281934
Change-Id: I3d301928af80a14ee6d161492c55a62b720d3cca
This commit is contained in:
Winson Chung
2017-02-03 14:37:53 -08:00
parent 4a04f0fb91
commit 56fe8833c7

View File

@@ -26,6 +26,7 @@ import android.app.PendingIntent.CanceledException;
import android.app.RemoteAction;
import android.content.Intent;
import android.content.pm.ParceledListSlice;
import android.graphics.Color;
import android.graphics.PointF;
import android.os.Bundle;
import android.os.Handler;
@@ -273,6 +274,7 @@ public class PipMenuActivity extends Activity {
final ImageView actionView = (ImageView) inflater.inflate(
R.layout.pip_menu_action, actionsGroup, false);
action.getIcon().loadDrawableAsync(this, d -> {
d.setTint(Color.WHITE);
actionView.setImageDrawable(d);
}, mHandler);
actionView.setContentDescription(action.getContentDescription());