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