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:
@@ -178,8 +178,7 @@ public class ExaltedDice extends Activity implements OnClickListener, OnItemClic
|
|||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
Intent intent = new Intent(this, GameListActivity.class);
|
Intent intent = new Intent(this, GameListActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
case MENU_QUIT:
|
case MENU_QUIT:
|
||||||
@@ -189,7 +188,7 @@ public class ExaltedDice extends Activity implements OnClickListener, OnItemClic
|
|||||||
clearHistory();
|
clearHistory();
|
||||||
return true;
|
return true;
|
||||||
case SETTINGS:
|
case SETTINGS:
|
||||||
startActivity(new Intent(this, Settings.class));
|
startActivity(new Intent(this, Settings.class).putExtras(getIntent().getExtras()));
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
|
|||||||
@@ -104,8 +104,9 @@ public class Settings extends PreferenceActivity implements OnPreferenceClickLis
|
|||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
Intent intent = new Intent(this, ExaltedDice.class);
|
Intent intent = new Intent(this, ExaltedDice.class)
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
||||||
|
.putExtras(getIntent().getExtras());
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user