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

Commit e212779f authored by Saumya Prakash's avatar Saumya Prakash Committed by Android (Google) Code Review
Browse files

Merge "Display app icons in quick switch task view when there are no updates." into udc-dev

parents d282d595 033412a8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -130,6 +130,8 @@ public class KeyboardQuickSwitchTaskView extends ConstraintLayout {
        applyThumbnail(mThumbnailView2, task2, thumbnailUpdateFunction);

        if (iconUpdateFunction == null) {
            applyIcon(mIcon1, task1);
            applyIcon(mIcon2, task2);
            setContentDescription(task2 == null
                    ? task1.titleDescription
                    : getContext().getString(
@@ -183,8 +185,8 @@ public class KeyboardQuickSwitchTaskView extends ConstraintLayout {
        thumbnailView.setImageBitmap(bm);
    }

    private void applyIcon(@Nullable ImageView iconView, @NonNull Task task) {
        if (iconView == null) {
    private void applyIcon(@Nullable ImageView iconView, @Nullable Task task) {
        if (iconView == null || task == null) {
            return;
        }
        iconView.setVisibility(VISIBLE);