Fix a bug in https://github.com/vanilla-music/vanilla/pull/935. (#962)
This commit is contained in:
1 parent
fa8cb5a975
commit
ef22a8cb46
1 file changed
+4
-1
@@ -280,7 +280,10 @@ public class PreferencesActivity extends PreferenceActivity
|
||||
|
||||
if (intent != null) {
|
||||
startActivity(intent);
|
||||
activity.onBackPressed();
|
||||
FragmentManager fragmentManager = getFragmentManager();
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O || !fragmentManager.isStateSaved()) {
|
||||
fragmentManager.popBackStack();
|
||||
}
|
||||
} else {
|
||||
// package is not installed, ask user to install it
|
||||
new AlertDialog.Builder(activity)
|
||||
|
||||
Reference in new issue
Block a user