You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit refactors the app renaming functionality in the `AppDrawerAdapter` for a simpler user experience and cleaner code.
The rename button has been changed from a `TextView` to an `ImageView`, and a cancel `ImageView` has been added. The logic for handling rename actions is now more direct:
- Clicking the save button with an empty text field resets the app name to its default.
- Clicking save with a non-empty field applies the new name.
- A new cancel button allows the user to exit the rename mode without making changes.
This removes the complex `TextWatcher` that previously updated the save button's text (`Rename`/`Reset`/`Cancel`) based on the input, simplifying the view holder's binding logic.
0 commit comments