Skip to content

Commit 5375224

Browse files
fix(appdrawer): Correct pin/unpin icon logic in context menu
The drawable for the "Pin to top" context menu item was inverted. It showed the 'unpin' icon (`pin_off`) when an app was already pinned and the 'pin' icon when it was not. This has been corrected to show `pin` when the app is not pinned and `pin_off` when it is.
1 parent c9cb158 commit 5375224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/github/droidworksstudio/mlauncher/ui/adapter/AppDrawerAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ class AppDrawerAdapter(
367367
isVisible = contextMenuFlags[0]
368368
setCompoundDrawablesWithIntrinsicBounds(
369369
0,
370-
if (isPinned) R.drawable.pin else R.drawable.pin_off,
370+
if (isPinned) R.drawable.pin_off else R.drawable.pin,
371371
0,
372372
0
373373
)

0 commit comments

Comments
 (0)