From 6643088959a547feca4d343a3268effae68386d5 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Fri, 5 Mar 2021 09:58:44 -0800 Subject: [PATCH] Nullify taskbar hotseatView tag when the cell is empty This ensures that a removed view becomes invisible. Test: turn off hotseat suggestions, drag an item out and verify it's removed from taskbar as well Bug: 179886115 Bug: 171917176 Change-Id: Iec509c2f0c420cee6f86feb293419bb2249a8dc4 --- quickstep/src/com/android/launcher3/taskbar/TaskbarView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarView.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarView.java index ed27f2ffc6..a729e7799f 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarView.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarView.java @@ -192,6 +192,7 @@ public class TaskbarView extends LinearLayout implements FolderIcon.FolderIconPa } else { hotseatView.setOnClickListener(null); hotseatView.setOnLongClickListener(null); + hotseatView.setTag(null); } updateHotseatItemVisibility(hotseatView); }