1
0
Fork 0
fenix/app
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
..
sampledata For #7092: Add initial Migration UI 2020-01-15 21:41:01 -08:00
src For #9144 - Ignore previous Intent if activity is started from Recents 2020-06-22 12:08:24 -04:00
.gitignore Initializes Android project 2018-12-07 15:25:38 -05:00
build.gradle Fix breaking APIs in TabsAdapter and ViewHolder 2020-06-13 16:02:31 -04:00
lint.xml Fixes #1890 - Remove unused strings (#1891) 2019-04-22 11:24:49 -07:00
metrics.yaml For #11442 - Telemetry for tab counter menu. 2020-06-15 11:48:12 -07:00
pings.yaml Update Android Components version to 41.0.20200512130104 🎲🎲 (#10600) 2020-05-12 14:52:58 -04:00
proguard-android-optimize-3.5.0-modified.txt Proguard/r8: Do not allow access modification. 2020-05-29 10:25:27 -07:00
proguard-rules.pro For #8949 - Removes old motionlayout code, fixes how shadow is drawn 2020-03-11 17:10:40 -07:00