Skip to content

Commit a85cbdb

Browse files
fix: update app rename condition to compare against prefs alias
Use prefs.getAppAlias() instead of appModel.activityLabel for accurate rename detection, ensuring the rename logic checks the current alias value rather than the original label. This prevents incorrect rename triggers when the displayed label differs from the stored alias.
1 parent 2a07a13 commit a85cbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class AppDrawerAdapter(
169169
appRenameListener(appModel.activityPackage, emptyString()) // empty string = default
170170
}
171171

172-
currentText != appModel.activityLabel -> { // Rename state
172+
currentText != prefs.getAppAlias(appModel.activityPackage) -> { // Rename state
173173
AppLogger.d("AppListDebug", "✏️ Renaming ${appModel.activityPackage} to $currentText")
174174
appRenameListener(appModel.activityPackage, currentText)
175175
}

0 commit comments

Comments
 (0)