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

Fix #816 - Fix shortcuts on Android 8.0 Oreo #820

Merged
merged 23 commits into from
Dec 5, 2017
Merged

Fix #816 - Fix shortcuts on Android 8.0 Oreo #820

merged 23 commits into from
Dec 5, 2017

Conversation

barbeau
Copy link
Member

@barbeau barbeau commented Nov 30, 2017

Please don't merge yet

  • Update to use support library ShortcutCompat.requestPinShortcut() so shortcuts work pre and post Android 8.0
  • Change launcher icons to be specific to shortcut (stop, route, recent, star, night light)
  • Fix creating shortcuts via the launcher widget menu item for Recents (Stops and Routes) and Nightlight (this was broken on all Android versions but unreported)
  • Refactor stop and route shortcut creation code into UIUtils
  • Add Action Bar titles for the Route and Stop activities accessed via shortcuts
  • Update PNG resources for higher resolutions required by launcher icons
  • Refactor a few updated PNG resources for standard naming conventions
  • Add raw SVGs used to generate PNG icons in /icons folder

TODO:

  • Add create shortcut as menu item for route list
  • Test on Android 8.0
  • Test on Android < 8

* Update to use support library requestPinShortcut() so shortcuts work pre and post Android 8.0
* Change launcher icons to be specific to shortcut (stop, route, recent, star)
* Update PNG resources for higher resolutions required by launcher icons
* Refactor a few updated PNG resources for standard naming conventions
* Add raw SVGs used to generate PNG icons in /icons folder

TODO:
* Test all shortcuts!  On both Android 8.0 and lower.
@barbeau barbeau added this to the v2.2.x milestone Nov 30, 2017
barbeau and others added 20 commits December 4, 2017 10:30
* Switch from using clock to material design "history" icon for "Recent routes/stops"
* Increase padding around ends of icons so "recents" shortcut icon doesn't look as cramped
* Remove unused icons
* Currently they are all cut off, like "OneBusAwa...".  Now you can actually see "Route" or "Stop"
* This shouldn't be "CREATE_SHORCUT", because in an Activity like NightLightActivity that functions as both the Activity to create the shortcut when triggered via the launcher menu, as well as the Activity that shortcut opens, it prevents the Activity from opening.
* Also refactor common code for creating route and stop shortcuts into UIUtils
@barbeau barbeau changed the title WIP - Fix #816 - Initial work towards fixing shortcuts on Android 8.0 Oreo Fix #816 - Fix shortcuts on Android 8.0 Oreo Dec 5, 2017
@barbeau barbeau merged commit 3bd995d into master Dec 5, 2017
@barbeau barbeau deleted the fix-shortcuts branch December 5, 2017 16:39
themonki added a commit to themonki/onebusaway-android that referenced this pull request Jan 2, 2018
* Based on commit 3bd995d - Fix OneBusAway#816 - Fix shortcuts on Android 8.0 Oreo (OneBusAway#820)
* Based on commit 82feedb - add a contributor
* Based on commit fd6ff09 - Fix OneBusAway#404 - Add social functionality via Embedded Social (OneBusAway#744)
* Based on commit c6422a3 - Update "What's New" to prepare for release
* Based on commit fd48a27 - Update "What's New" to include bug fixes
@themonki themonki mentioned this pull request Jan 2, 2018
3 tasks
barbeau pushed a commit that referenced this pull request Jan 18, 2018
* Update Spanish Translations

* Based on commit 3bd995d - Fix #816 - Fix shortcuts on Android 8.0 Oreo (#820)
* Based on commit 82feedb - add a contributor
* Based on commit fd6ff09 - Fix #404 - Add social functionality via Embedded Social (#744)
* Based on commit c6422a3 - Update "What's New" to prepare for release
* Based on commit fd48a27 - Update "What's New" to include bug fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant