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

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

Switch from magic string literals to ressource ids

parent b9cd8c35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ public class NoteEditFragment extends BaseNoteFragment {

            editContent.setCustomSelectionActionModeCallback(new StyleCallback(this.editContent));
            SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getActivity().getApplicationContext());
            if (sp.getBoolean("font", false)) {
            if (sp.getBoolean(getString(R.string.pref_key_font), false)) {
                editContent.setTypeface(Typeface.MONOSPACE);
            }
        } else {
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class NotePreviewFragment extends BaseNoteFragment {
        noteContent.setMovementMethod(LinkMovementMethod.getInstance());

        SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getActivity().getApplicationContext());
        if (sp.getBoolean("font", false)) {
        if (sp.getBoolean(getString(R.string.pref_key_font), false)) {
            noteContent.setTypeface(Typeface.MONOSPACE);
        }
    }