Skip to content

Activity#getTitle method returns untranslated activity title #24

@antercepter

Description

@antercepter

Describe the bug
Activity#getTitle method returns untranslated label we set in android:label attribute in the AndroidManifest.xml and we cannot intercept it. The workaround is to read label of the activity directly from the AndroidManifest.xml and after that request string by this id from repository:

ActivityInfo activityInfo = getPackageManager().getActivityInfo(
                        getComponentName(),
                        PackageManager.GET_META_DATA
                );
 String label = getString(activityInfo.labelRes);

Expected behavior
Activity#getTitle method should return translated label

Library version
2.0.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions