mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user