mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
Boolean.not() -> !Boolean
This commit is contained in:
@ -20,7 +20,7 @@ enum class ShiftState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getShiftStateForText(context: Context, newText: String?): ShiftState {
|
fun getShiftStateForText(context: Context, newText: String?): ShiftState {
|
||||||
if (context.config.enableSentencesCapitalization.not()) {
|
if (!context.config.enableSentencesCapitalization) {
|
||||||
return OFF
|
return OFF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ enum class ShiftState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getCapitalizationOnDelete(context: Context, text: CharSequence?): ShiftState {
|
fun getCapitalizationOnDelete(context: Context, text: CharSequence?): ShiftState {
|
||||||
if (context.config.enableSentencesCapitalization.not()) {
|
if (!context.config.enableSentencesCapitalization) {
|
||||||
return OFF
|
return OFF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user