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:
Andy2 2011-02-26 19:47:33 -08:00
parent 9cc7cd0dc8
commit 6df2abecb6
2 changed files with 1 additions and 3 deletions

View file

@ -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>

View file

@ -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 );
}