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