Merge pull request #3832 from ByteHamster/fix-import-restart

Fixed not restarting correctly after import
This commit is contained in:
H. Lehmann 2020-02-05 17:18:34 +01:00 committed by GitHub
commit c9b8c101ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ public class ImportExportPreferencesFragment extends PreferenceFragmentCompat {
ComponentName cn = intent.getComponent();
Intent mainIntent = Intent.makeRestartActivityTask(cn);
startActivity(mainIntent);
Runtime.getRuntime().exit(0);
});
d.show();
}