diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-05-04 23:23:10 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-05-04 23:23:10 -0700 |
commit | 066a081a92103f6dfb7c1cb70e43dc6757e953b1 (patch) | |
tree | c727893023332fadafd7827378d04b6287767075 /app | |
parent | 1c972ba10dd7dd1a934f1895029d1529af67f93d (diff) | |
download | dsub-066a081a92103f6dfb7c1cb70e43dc6757e953b1.tar.gz dsub-066a081a92103f6dfb7c1cb70e43dc6757e953b1.tar.bz2 dsub-066a081a92103f6dfb7c1cb70e43dc6757e953b1.zip |
Fix theme change after switching launchMode
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java index 00e80517..06559456 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -883,8 +883,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte restart(true); } protected void restart(boolean resumePosition) { - Intent intent = new Intent(this, ((Object) this).getClass()); - intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + Intent intent = new Intent(this, this.getClass()); intent.putExtras(getIntent()); if(resumePosition) { intent.putExtra(Constants.FRAGMENT_POSITION, lastSelectedPosition); @@ -893,6 +892,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte intent.putExtra(Constants.INTENT_EXTRA_FRAGMENT_TYPE, fragmentType); intent.putExtra(Constants.FRAGMENT_POSITION, getDrawerItemId(fragmentType)); } + finish(); Util.startActivityWithoutTransition(this, intent); } |