mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
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:
parent
51c7752830
commit
06fe5894b9
3 changed files with 6 additions and 1 deletions
|
@ -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" />
|
||||
|
|
|
@ -1142,6 +1142,7 @@ public class DictsDelegate extends ListDelegateBase
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
// DwnldActivity.DownloadFinishedListener interface
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
@Override
|
||||
public void downloadFinished( String lang, final String name,
|
||||
final boolean success )
|
||||
{
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue