Skip to content

Commit

Permalink
システムフォントを選択している場合に、フォント設定画面で選択状態が正しく表示されないバグの修正
Browse files Browse the repository at this point in the history
refs #249
  • Loading branch information
shibafu528 committed Jul 8, 2019
1 parent f8d12e7 commit 4fecbed
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -69,6 +69,9 @@ public void onViewCreated(View view, Bundle savedInstanceState) {

fonts.add(new Pair<>(FontAsset.BUNDLE_FONT_ID, FontAsset.getBundleFont(getContext().getAssets())));
fonts.add(new Pair<>(FontAsset.SYSTEM_FONT_ID, Typeface.DEFAULT));
if (FontAsset.SYSTEM_FONT_ID.equals(currentFile)) {
selectedIndex = 1;
}

File fontDir = new File(getActivity().getExternalFilesDir(null), "font");
if (!fontDir.exists()) {
Expand Down

0 comments on commit 4fecbed

Please sign in to comment.