1
0
Fork 0

For #9797: Set min height of dialog edit text to 48dp.

master
mcarare 2020-04-08 16:11:25 +03:00 committed by Arturo Mejia
parent 1c65bb8255
commit 413af92bc5
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import mozilla.components.service.fxa.manager.SyncEnginesStorage
import mozilla.components.service.fxa.sync.SyncReason
import mozilla.components.service.fxa.sync.SyncStatusObserver
import mozilla.components.service.fxa.sync.getLastSynced
import mozilla.components.support.ktx.android.util.dpToPx
import org.mozilla.fenix.R
import org.mozilla.fenix.components.FenixSnackbar
import org.mozilla.fenix.components.StoreProvider
@ -157,6 +158,7 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
}
setOnBindEditTextListener { editText ->
editText.filters = arrayOf(InputFilter.LengthFilter(DEVICE_NAME_MAX_LENGTH))
editText.minHeight = DEVICE_NAME_EDIT_TEXT_MIN_HEIGHT_DP.dpToPx(resources.displayMetrics)
}
}
@ -418,5 +420,6 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
companion object {
private const val DEVICE_NAME_MAX_LENGTH = 128
private const val DEVICE_NAME_EDIT_TEXT_MIN_HEIGHT_DP = 48
}
}