mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
don't use special launchModes for GamesList *but* do invoke it from
DispatchNotify so that an existing instance will be reused rather than a new on created on top of the stack.
This commit is contained in:
parent
9cc7cd0dc8
commit
6df2abecb6
2 changed files with 1 additions and 3 deletions
|
@ -39,7 +39,6 @@
|
|||
|
||||
<activity android:name="GamesList"
|
||||
android:label="@string/title_games_list"
|
||||
android:launchMode="singleTask"
|
||||
>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
@ -83,7 +82,6 @@
|
|||
android:theme="@android:style/Theme.Light"
|
||||
android:screenOrientation="sensor"
|
||||
android:configChanges="keyboardHidden|orientation"
|
||||
android:launchMode="singleTask"
|
||||
>
|
||||
</activity>
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public class DispatchNotify extends Activity {
|
|||
if ( !tryHandle( this, relayIDs ) ) {
|
||||
Utils.logf( "DispatchNotify: nothing running" );
|
||||
intent = new Intent( this, GamesList.class );
|
||||
// intent.setFlags( Intent.FLAG_ACTIVITY_SINGLE_TOP );
|
||||
intent.setFlags( Intent.FLAG_ACTIVITY_CLEAR_TOP );
|
||||
intent.putExtra( id, relayIDs );
|
||||
startActivity( intent );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue