Fixed input processing

Probably last fix for the first iteration of this functionality.
This commit is contained in:
sadellie 2022-11-13 17:04:33 +04:00
parent 2a348867a2
commit 3220cf20e2

View File

@ -321,7 +321,7 @@ class MainViewModel @Inject constructor(
* "50+". We don't add "/' here. User will click "/" second time and the input * "50+". We don't add "/' here. User will click "/" second time and the input
* will be "50/". * will be "50/".
*/ */
(lastSecondSymbol in OPERATORS) -> { (lastSecondSymbol in OPERATORS) and (lastSymbol == KEY_MINUS)-> {
deleteDigit() deleteDigit()
} }
// Don't allow multiple operators near each other // Don't allow multiple operators near each other