Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5693c5a authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Do not finish PreferencesActivity when switching theme

parent b4d260b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7,9 +7,9 @@ import android.preference.Preference;
import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import android.preference.SwitchPreference;
import androidx.annotation.Nullable;
import android.widget.Toast;

import androidx.annotation.Nullable;
import at.bitfire.cert4android.CustomCertManager;
import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.util.Notes;
@@ -41,7 +41,7 @@ public class PreferencesFragment extends PreferenceFragment {
                Boolean darkTheme = (Boolean) newValue;
                Notes.setAppTheme(darkTheme);
                getActivity().setResult(Activity.RESULT_OK);
                getActivity().finish();
                getActivity().recreate();

                return true;
            }