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

Commit 033412a8 authored by Saumya Prakash's avatar Saumya Prakash
Browse files

Display app icons in quick switch task view when there are no updates.

Flag: ENABLE_KEYBOARD_QUICK_SWITCH
Fix: 275629107
Test: Launched keyboard quick switch view and changed focus back and forth

Change-Id: I6ce39e7842bb04c80d49d871002ef957708a8e59
parent e5021363
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);