fix invitations creating a second activity stack

Looks like certain launches that went through DispatchNotify could
create a second "instance" of the app. Giving that Activity a launchMode
of singleTask fixes this (singleTop does not.)
This commit is contained in:
Eric House 2019-01-21 18:55:00 -08:00
parent 51c7752830
commit 06fe5894b9
3 changed files with 6 additions and 1 deletions

View file

@ -128,7 +128,9 @@
</intent-filter>
</receiver>
<activity android:name="DispatchNotify">
<activity android:name="DispatchNotify"
android:launchMode="singleTask"
>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />

View file

@ -1142,6 +1142,7 @@ public class DictsDelegate extends ListDelegateBase
//////////////////////////////////////////////////////////////////////
// DwnldActivity.DownloadFinishedListener interface
//////////////////////////////////////////////////////////////////////
@Override
public void downloadFinished( String lang, final String name,
final boolean success )
{

View file

@ -1310,6 +1310,7 @@ public class GamesListDelegate extends ListDelegateBase
String lang = (String)params[0];
String name = (String)params[1];
DownloadFinishedListener lstnr = new DownloadFinishedListener() {
@Override
public void downloadFinished( String lang, String name, boolean success )
{
if ( success ) {
@ -1703,6 +1704,7 @@ public class GamesListDelegate extends ListDelegateBase
//////////////////////////////////////////////////////////////////////
// DwnldActivity.DownloadFinishedListener interface
//////////////////////////////////////////////////////////////////////
@Override
public void downloadFinished( String lang, String name,
final boolean success )
{