diff --git a/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/ExaltedDice.java b/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/ExaltedDice.java index 07e1964..f6dfa6c 100755 --- a/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/ExaltedDice.java +++ b/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/ExaltedDice.java @@ -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); diff --git a/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/Settings.java b/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/Settings.java index 98a5cbb..71072aa 100644 --- a/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/Settings.java +++ b/ExaltedDice/src/com/TwentyCode/android/ExaltedDice/Settings.java @@ -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: