Skip to content

Commit

Permalink
fix translation language size
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Sep 12, 2021
1 parent 0db4196 commit b02bb5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ class TranslationLanguageDialog(val context: Context) {

AlertDialog.Builder(context, R.style.TouchAreaDialog).apply {
setTitle("Translation Language")
setSingleChoiceItems(languages, config.pdfPaperSize.ordinal) { dialog, selectedIndex ->
setSingleChoiceItems(
languages,
config.translationLanguage.ordinal
) { dialog, selectedIndex ->
config.translationLanguage = TranslationLanguage.values()[selectedIndex]
action(config.translationLanguage)
dialog.dismiss()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/translation_panel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
android:background="@drawable/backgound_with_border"
android:textAlignment="center"
android:gravity="center"
android:textSize="20sp"
android:textSize="16sp"
tools:text="zh"
/>
<ImageButton
Expand Down

0 comments on commit b02bb5d

Please sign in to comment.