mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Merge "Display app icons in quick switch task view when there are no updates." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e212779ffd
@@ -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