-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add Dynamic App Shortcuts #836
Comments
After more research, this would require " |
We're actually still targeting 23, since there are few things with multiwindow that break and I haven't had time to debug them. See: #663 |
Quicker access to the info you want to see would be really great, e.g. to quickly determine, "How are my teams are doing?" and "When to tune in to which field?" But I think a dashboard page would be a better approach than app shortcuts. A dashboard would be visible, more flexible, and faster than exiting the app and using an app shortcut. It'd show the key info for all your teams on one screen rather than having to exit the app to use another shortcut. (Is there usage data on app shortcuts? They're hidden and new so I suspect people rarely use them.) Listing the dashboard screen in the navigation drawer would make it only 2 taps away from any app screen. @nwalters512 suggested an in-app dashboard in a previous issue. |
@1fish2 I mean, why not both? I think that each provide a valid solution to different use cases. One of the things that's nice with shortcuts is that you can break them out as a separate icon on your launcher. This means that if you're on your homescreen already, you're only 1 tap away from a favorite team, as opposed to the normal 4 (TBA app > burger menu > myTBA > XXXX team) |
Good point. There's no reason not to do both once the app targets Android v25. A dashboard would be my favorite way to get quick-info while an app shortcut is a simpler solution for the simpler case. |
I decided to try implementing (static) shortcuts in a small app. See this CL. Lesson 1: It's better if app shortcuts are idempotent, e.g. open the screen for your favorite team. The app shortcuts in this CL are not, e.g. restart a timer. A configuration change like enter/exit multi-window mode recreates the Activity with the same Intent, and we don't want that to restart the timer. My workaround was to modify the Intent's action, yuk! I think that hack is why it once got a null action, but I haven't figured out how to reproduce it. I just made the code handle it. Lesson 2: It's smart to use vector drawables for the shortcut icons, typically a small 1-color icon on a light gray circle. Creating them took me hours even starting with standard Material icons. That one lacks the background circle. I tried to edit an icon with an outline circle into one with a background circle but it crashed some SVG editors. |
This should now be unblocked, as of #880 |
As a user, I want dynamic app shortcuts, so that I can quickly get to the pages I want to see.
My initial thought would be to have the shortcuts be for teams/events in myTBA. I did some research already into this, and the only real issue I see is that you're only allowed to register 5 shortcuts, so we'd need some way to determine which we're going to show, if there's more than 5.
The text was updated successfully, but these errors were encountered: