fixed : label disappear in workspace

- closes : #5256
This commit is contained in:
MrSluffy committed 2025-02-15 07:33:33 +08:00
1 parent 473121ad53
commit a0b5a17ca8
3 files changed
+12 -8

No files matched your search

+6 -4
View File
@@ -757,10 +757,12 @@ public class CellLayout extends ViewGroup {
CellLayoutLayoutParams params, boolean markCells) {
final CellLayoutLayoutParams lp = params;
// Hotseat icons - remove text
if (child instanceof BubbleTextView) {
BubbleTextView bubbleChild = (BubbleTextView) child;
bubbleChild.setTextVisibility(PreferenceExtensionsKt.firstBlocking(pref.getEnableLabelInDock()));
// Hotseat icons - modified by lawnchair
if (child instanceof BubbleTextView bubbleChild) {
boolean enableLabel = mContainerType == HOTSEAT
? PreferenceExtensionsKt.firstBlocking(pref.getEnableLabelInDock())
: true;
bubbleChild.setTextVisibility(enableLabel);
}
child.setScaleX(DEFAULT_SCALE);