mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-13 12:38:52 -06:00
Compare commits
4 Commits
d4f4f8b4a9
...
v2.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
6116ef9450
|
|||
|
8801960615
|
|||
|
b0a4284b66
|
|||
|
88df8d2552
|
@@ -1,5 +1,13 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [2.1.3] -- 2023-08-28
|
||||||
|
### Fixed
|
||||||
|
- Use text input on Samsung devices (@iSoron, #1719)
|
||||||
|
- Prevent crash if alarm permission is revoked (@iSoron)
|
||||||
|
- Adjust widget colors (@iSoron)
|
||||||
|
- Fix bug preventing screens from updating at midnight (@iSoron)
|
||||||
|
- Fix skip button in locales that use comma instead of dot (@iSoron, #1721)
|
||||||
|
|
||||||
## [2.1.2] -- 2023-05-26
|
## [2.1.2] -- 2023-05-26
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix bug that caused widget to enter checkmark on wrong date (@iSoron, #1541)
|
- Fix bug that caused widget to enter checkmark on wrong date (@iSoron, #1541)
|
||||||
|
|||||||
@@ -2,11 +2,13 @@ package org.isoron.uhabits.activities.common.dialogs
|
|||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.provider.Settings
|
||||||
import android.text.method.DigitsKeyListener
|
import android.text.method.DigitsKeyListener
|
||||||
import android.view.KeyEvent
|
import android.view.KeyEvent
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.MotionEvent
|
import android.view.MotionEvent
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
import android.view.inputmethod.EditorInfo
|
||||||
import androidx.appcompat.app.AppCompatDialogFragment
|
import androidx.appcompat.app.AppCompatDialogFragment
|
||||||
import org.isoron.uhabits.HabitsApplication
|
import org.isoron.uhabits.HabitsApplication
|
||||||
import org.isoron.uhabits.R
|
import org.isoron.uhabits.R
|
||||||
@@ -86,6 +88,15 @@ class NumberDialog : AppCompatDialogFragment() {
|
|||||||
// https://stackoverflow.com/a/34256139
|
// https://stackoverflow.com/a/34256139
|
||||||
val separator = DecimalFormatSymbols.getInstance().decimalSeparator
|
val separator = DecimalFormatSymbols.getInstance().decimalSeparator
|
||||||
view.value.keyListener = DigitsKeyListener.getInstance("0123456789$separator")
|
view.value.keyListener = DigitsKeyListener.getInstance("0123456789$separator")
|
||||||
|
|
||||||
|
// https://github.com/flutter/flutter/issues/61175
|
||||||
|
val currKeyboard = Settings.Secure.getString(
|
||||||
|
requireContext().contentResolver,
|
||||||
|
Settings.Secure.DEFAULT_INPUT_METHOD
|
||||||
|
)
|
||||||
|
if (currKeyboard.contains("swiftkey") || currKeyboard.contains("samsung")) {
|
||||||
|
view.value.inputType = EditorInfo.TYPE_CLASS_TEXT
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun save() {
|
fun save() {
|
||||||
|
|||||||
Reference in New Issue
Block a user