Fixed App Icon Navigation

by passing the extras passed to Exalted Dice to the settings activity,
and back again.

Change-Id: I6bd98cdbb6cab3db7233005bd0cd1dc1a7083adb
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-02-07 11:45:18 -05:00
parent e0cfaa2266
commit 108d3983d1
2 changed files with 5 additions and 5 deletions

View File

@@ -178,8 +178,7 @@ public class ExaltedDice extends Activity implements OnClickListener, OnItemClic
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
Intent intent = new Intent(this, GameListActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Intent intent = new Intent(this, GameListActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
return true;
case MENU_QUIT:
@@ -189,7 +188,7 @@ public class ExaltedDice extends Activity implements OnClickListener, OnItemClic
clearHistory();
return true;
case SETTINGS:
startActivity(new Intent(this, Settings.class));
startActivity(new Intent(this, Settings.class).putExtras(getIntent().getExtras()));
return true;
default:
return super.onOptionsItemSelected(item);

View File

@@ -104,8 +104,9 @@ public class Settings extends PreferenceActivity implements OnPreferenceClickLis
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
Intent intent = new Intent(this, ExaltedDice.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Intent intent = new Intent(this, ExaltedDice.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
.putExtras(getIntent().getExtras());
startActivity(intent);
return true;
default: