diff options
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/ClipboardService.kt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/ClipboardService.kt b/app/src/main/java/com/zeapo/pwdstore/ClipboardService.kt index 7493a364..46c4ecd3 100644 --- a/app/src/main/java/com/zeapo/pwdstore/ClipboardService.kt +++ b/app/src/main/java/com/zeapo/pwdstore/ClipboardService.kt @@ -45,12 +45,7 @@ class ClipboardService : Service() { } ACTION_START -> { - val time = try { - Integer.parseInt(settings.getString(PreferenceKeys.GENERAL_SHOW_TIME) - ?: "45") - } catch (e: NumberFormatException) { - 45 - } + val time = settings.getString(PreferenceKeys.GENERAL_SHOW_TIME)?.toIntOrNull() ?: 45 if (time == 0) { stopSelf() |