This fixes an issue where the tab would refresh when going to an article and pressing back when you got to that tab using a shortcut intent. The current behavior would refresh the entire tab (ex. "All") when coming back from an article and scroll to the top. The new behavior will not refresh the tab in this case and preserve the current scroll position.
This bug can only be seen when using shortcut intents (on Android 7.1+, long hold the app icon and press "Unreads", "All", or "Favorites")
I also added the setIntent(intent) line in onNewIntent(...) because the intent was not being updated when the activity was already created. Adding this line ensures that the intent is always updated and will be correct in onResume(...)
(This was causing the incorrect tab to be loaded when trying to use multiple shortcuts in a row without force closing the app)
This fixes an issue where the tab would refresh when going to an article and pressing back when you got to that tab using a shortcut intent. The current behavior would refresh the entire tab (ex. "All") when coming back from an article and scroll to the top. The new behavior will not refresh the tab in this case and preserve the current scroll position.
This bug can only be seen when using shortcut intents (on Android 7.1+, long hold the app icon and press "Unreads", "All", or "Favorites")
I also added the setIntent(intent) line in onNewIntent(...) because the intent was not being updated when the activity was already created. Adding this line ensures that the intent is always updated and will be correct in onResume(...) (This was causing the incorrect tab to be loaded when trying to use multiple shortcuts in a row without force closing the app)