|
|
|
@ -109,6 +109,7 @@ class FontSelectDialog : BaseDialogFragment(), |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun openFolder() { |
|
|
|
|
launch(Main) { |
|
|
|
|
alert { |
|
|
|
|
titleResource = R.string.select_folder |
|
|
|
|
items(resources.getStringArray(R.array.select_folder).toList()) { _, index -> |
|
|
|
@ -145,6 +146,7 @@ class FontSelectDialog : BaseDialogFragment(), |
|
|
|
|
} |
|
|
|
|
}.show() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@SuppressLint("DefaultLocale") |
|
|
|
|
private fun getFontFiles(doc: DocumentFile) { |
|
|
|
@ -261,7 +263,7 @@ class FontSelectDialog : BaseDialogFragment(), |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun onDefaultFontChange(callBack: CallBack){ |
|
|
|
|
private fun onDefaultFontChange(callBack: CallBack) { |
|
|
|
|
if (curFilePath() == "") { |
|
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
|
} else { |
|
|
|
|