1
0
Fork 0
fenix/app/src
Mugurell 0ba1d266b3 For #9144 - Ignore previous Intent if activity is started from Recents
We'll now clearly differentiate between cold / hot starts of HomeActivity.kt.
This is needed because Android will resend the original Intent which initially
started the Activity whenever it is restarted from the Recents Screen if the
activity is already destroyed at that time. So in the event that the activity
was before started with an Intent to open a webpage for example whenever the
activity is restarted from Recents it will receive the same Intent to open a
webpage even though that Intent has already been consumed.

Activity's onCreate() will only use the intent processors when the activity is
cold started so that we'll only initially act upon Intents configured for
different behaviors inside the app.
If the activity is destroyed while in background and opened from Recents it
will not act upon the original Intent which is now resent by Android.

Activity's onNewIntent() will be called to act upon a new Intent if the
activity is hot started since we are declared as singleTask and it now has the
responsibility to delegate various intent processors to consume that Intent.
2020-06-22 12:08:24 -04:00
..
androidTest Fixes #11797 defaultDesktopBookmarksFoldersTest intermittent failure (#11803) 2020-06-22 11:03:22 -04:00
debug for #11617 added a resetPoliciesAfter ext function for StrictMode, and replaced all existing calls to "resetAfter" with "resetPoliciesAfter" (#11619) 2020-06-16 11:12:18 -07:00
fenixBeta/res Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fenixNightly Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fennecBeta/res No issue: losslessly compress image assets. 2020-05-04 14:54:46 -07:00
fennecNightly/res Optimize PNGs. 2020-02-14 09:41:54 -08:00
fennecProduction/res/xml Closes #8273: Add shortcuts.xml for fennecProduction variant. 2020-02-14 07:42:23 +01:00
geckoBeta/java/org/mozilla/fenix/engine For #10757: remove no-op Experiments code and dependency. 2020-05-18 15:38:38 -07:00
geckoNightly/java/org/mozilla/fenix/engine For #8967 - Expose autofill logins setting in nightly 2020-06-09 12:21:48 -04:00
main For #9144 - Ignore previous Intent if activity is started from Recents 2020-06-22 12:08:24 -04:00
migration For #8803: hook up frameworkStart metric. 2020-04-17 09:11:58 -07:00
test For #9144 - Ignore previous Intent if activity is started from Recents 2020-06-22 12:08:24 -04:00