Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rename multiple activities from one app separately #535

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gustav-langer
Copy link

This pull request partly implements #415 by storing rename labels by component name instead of package name, which allows different activities to be renamed separately.

There is still no option to reset renames, so it isn't completely done. (I will however try to implement that soon as well.)

Please also add the hacktoberfest-accepted label to this pull request as it was made for Hacktoberfest 2024. Thank you for your awesome launcher!

…ackage name.

Apps with multiple launching activities can now be separately renamed.
@gustav-langer gustav-langer marked this pull request as draft October 30, 2024 20:47
@gustav-langer
Copy link
Author

gustav-langer commented Oct 30, 2024

Actually, I didn't notice that resetting was already supported by deleting the rename text. This is now slightly broken as it resets to the application and not activity name, but should be fixable (but I currently don't know how).

@gustav-langer gustav-langer marked this pull request as ready for review October 30, 2024 20:57
…re any renames. This field is used as the hint for the rename field, allowing renames of applications with multiple launching activities to be reset correctly.
@@ -195,7 +194,7 @@ class AppDrawerAdapter(
}
etAppRename.addTextChangedListener(object : TextWatcher {
override fun afterTextChanged(s: Editable?) {
etAppRename.hint = getAppName(etAppRename.context, appModel.appPackage)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this piece of code. It seems to reload the app name every time something is typed. For what is this needed?

The updated code currently does not do this, and always uses the originalLabel set in Utils/getAppsList, which might need to be changed to restore the original behavior.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant