Removing listeners from FolderInfo

Folder and FolderIcon are UI objects and can talk to each other directly.
FolderInfo changes are already propogated via model callbacks, and doesn't need a separate listener pattern.

Bug: 398791288
Flag: EXEMPT bugfix
Test: atest FolderTest

Change-Id: Iefd47b8ea12a8ecaf34211a3d908220a0e999187
This commit is contained in:
Sunny Goyal
2025-03-11 16:43:14 -07:00
parent a29ec52cce
commit 1ac78b6ec6
14 changed files with 193 additions and 368 deletions
@@ -393,7 +393,6 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
if (enableTaskbarPinning()) {
mTaskbarView.removeOnLayoutChangeListener(mTaskbarViewLayoutChangeListener);
}
mTaskbarView.removeFolderIconListeners();
LauncherAppState.getInstance(mActivity).getModel().removeCallbacks(mModelCallbacks);
mActivity.removeOnDeviceProfileChangeListener(mDeviceProfileChangeListener);
}