Merge pull request #7940 from osmandapp/plugins_fixes

Enable selected settings app mode before entering configure screen or map
This commit is contained in:
max-klaus 2019-11-18 14:52:24 +03:00 committed by GitHub
commit 6aeb140e43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,6 +304,7 @@ public class ConfigureProfileFragment extends BaseSettingsFragment {
try { try {
FragmentManager fragmentManager = activity.getSupportFragmentManager(); FragmentManager fragmentManager = activity.getSupportFragmentManager();
if (fragmentManager != null) { if (fragmentManager != null) {
settings.APPLICATION_MODE.set(getSelectedAppMode());
fragmentManager.beginTransaction() fragmentManager.beginTransaction()
.remove(this) .remove(this)
.addToBackStack(TAG) .addToBackStack(TAG)