Button font changes along with system font size

pull/1096/head
Jakub Kalinowski 4 years ago
parent 8bfa1f8cc8
commit f3eebd85c7

@ -22,7 +22,6 @@ package org.isoron.uhabits.activities.common.dialogs
import android.content.Context import android.content.Context
import android.content.DialogInterface import android.content.DialogInterface
import android.text.InputFilter import android.text.InputFilter
import android.util.TypedValue
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE import android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE
import android.view.inputmethod.EditorInfo import android.view.inputmethod.EditorInfo
@ -85,7 +84,6 @@ class NumberPickerFactory
dialog.setOnShowListener { dialog.setOnShowListener {
picker.getChildAt(0)?.requestFocus() picker.getChildAt(0)?.requestFocus()
dialog.window?.setSoftInputMode(SOFT_INPUT_STATE_ALWAYS_VISIBLE) dialog.window?.setSoftInputMode(SOFT_INPUT_STATE_ALWAYS_VISIBLE)
dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextSize(TypedValue.COMPLEX_UNIT_DIP, 20.0f)
} }
InterfaceUtils.setupEditorAction( InterfaceUtils.setupEditorAction(

@ -169,6 +169,7 @@
</style> </style>
<style name="DialogButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog"> <style name="DialogButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name ="android:textSize">@dimen/regularTextSize</item>
<item name="android:textColor">@color/grey_100</item> <item name="android:textColor">@color/grey_100</item>
</style> </style>

Loading…
Cancel
Save