Skip to content

Commit

Permalink
#256 - Fixed Default size updated (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddygta17 authored and Swati4star committed Jul 21, 2018
1 parent 65c8ea0 commit 0ddb6c2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which)
SharedPreferences.Editor editor = mSharedPreferences.edit();
editor.putInt(Constants.DEFAULT_FONT_SIZE_TEXT, mFontSize);
editor.apply();
mFontTitle = String.format(getString(R.string.edit_font_size),
mSharedPreferences.getInt(Constants.DEFAULT_FONT_SIZE_TEXT,
Constants.DEFAULT_FONT_SIZE));
}
}
} catch (NumberFormatException e) {
Expand Down

0 comments on commit 0ddb6c2

Please sign in to comment.