Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Appinfo enhancements and bug #100

Open
adjustamat opened this issue Oct 16, 2019 · 1 comment
Open

Appinfo enhancements and bug #100

adjustamat opened this issue Oct 16, 2019 · 1 comment

Comments

@adjustamat
Copy link

Appinfo shows the same info for all Activities and shortcuts belonging to a package. It would be great to see the actual Activity title (instead of the application label) as title, and see if it's a shortcut or a regular launcher (I have a pull request for this).

For certain apps, the icon takes up so much space that I can hardly see the title at all (see screenshot)
LaunchTime_Appinfo_Screenshot

@adjustamat
Copy link
Author

I can't create a pull request without weird changes to .idea/misc.xml and .idea/modules.xml (I'm surprised those aren't in gitignore.)

I just made these changes:
to strings.xml:
<string name="link_to">Shortcut to:\n%s</string>
to AppInfo.java:

            String name = pi.applicationInfo.loadLabel(main.getPackageManager()).toString();
            String link = appitem.getLinkUri();
            if (link == null) {
                itemText.setText(name);
            } else {
                itemText.setText(main.getString(R.string.link_to, name));
                data
                        .append(main.getText(R.string.link))
                        .append(":\n")
                        .append(link)
                        .append("\n\n");
            }

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

No branches or pull requests

1 participant