Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Nov 12, 2024
1 parent 4285c05 commit 8d5ab90
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/machiav3lli/backup/OABX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class OABX : Application() {
if (aquire) {
traceDebug { "%%%%% $wakeLockTag wakelock aquire (before: $wakeLockNested)" }
if (wakeLockNested.accumulateAndGet(+1, Int::plus) == 1) {
val pm : PowerManager = get(PowerManager::class.java)
val pm: PowerManager = get(PowerManager::class.java)
theWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, wakeLockTag)
theWakeLock?.acquire(60 * 60 * 1000L)
traceDebug { "%%%%% $wakeLockTag wakelock ACQUIRED" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.androidx.viewmodel.ext.android.viewModel
import org.koin.core.module.dsl.viewModel
import org.koin.dsl.module
import timber.log.Timber

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/machiav3lli/backup/plugins/TextPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fun TextEditor(
placeholder = { Text(text = placeholder, color = Color.Gray) },
singleLine = false,
keyboardOptions = KeyboardOptions(
autoCorrect = false
autoCorrectEnabled = false
),
onValueChange = {
input = it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ fun TerminalText(
)
},
keyboardOptions = KeyboardOptions(
autoCorrect = false,
autoCorrectEnabled = false
//imeAction = ImeAction.Done
),
//keyboardActions = KeyboardActions(
Expand Down Expand Up @@ -679,7 +679,7 @@ fun Terminal(
}
},
keyboardOptions = KeyboardOptions(
autoCorrect = false,
autoCorrectEnabled = false,
imeAction = ImeAction.Go
),
keyboardActions = KeyboardActions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fun TextInput(
}
),
keyboardOptions = KeyboardOptions(
autoCorrect = false
autoCorrectEnabled = false
),
onValueChange = {
if (it.text.contains("\n")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fun TextInputMenuItem(
}
),
keyboardOptions = KeyboardOptions(
autoCorrect = false
autoCorrectEnabled = false
),
onValueChange = {
if (it.contains("\n")) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/machiav3lli/backup/utils/JsonUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

@ExperimentalSerializationApi
@Serializer(forClass = LocalDateTime::class)
object LocalDateTimeSerializer : KSerializer<LocalDateTime> {
override val descriptor: SerialDescriptor =
PrimitiveSerialDescriptor("LocalDateTimeSerializer", PrimitiveKind.STRING)
Expand All @@ -43,7 +42,6 @@ object LocalDateTimeSerializer : KSerializer<LocalDateTime> {
}

@ExperimentalSerializationApi
@Serializer(forClass = Uri::class)
object UriSerializer : KSerializer<Uri> {
override val descriptor: SerialDescriptor =
PrimitiveSerialDescriptor("UriSerializer", PrimitiveKind.STRING)
Expand Down

0 comments on commit 8d5ab90

Please sign in to comment.