Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa9e1bc1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Migrate off deprecated supplemental icon method."

parents 915c9dbc df94129e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -356,10 +356,11 @@ public class CarVolumeDialogImpl implements VolumeDialog {
    if (supplementalIconId != 0) {
      Drawable supplementalIcon = mContext.getResources().getDrawable(supplementalIconId);
      supplementalIcon.mutate().setTint(color);
      listItem.setSupplementalIcon(supplementalIcon, true,
          supplementalIconOnClickListener);
      listItem.setSupplementalIcon(supplementalIcon, true);
      listItem.setSupplementalIconListener(supplementalIconOnClickListener);
    } else {
      listItem.setSupplementalEmptyIcon(true);
      listItem.setSupplementalIconListener(null);
    }

    mVolumeLineItems.add(listItem);