This commit is contained in:
Bnyro 2022-08-23 15:53:12 +02:00
parent 95b91e60d9
commit 326573659c
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,9 @@ class MainActivity : BaseActivity() {
PreferenceKeys.BREAK_REMINDER,
"0"
)
if (!breakReminderPref.all { Character.isDigit(it) }) return
if (!breakReminderPref.all { Character.isDigit(it) } ||
breakReminderPref == "" || breakReminderPref == "0"
) return
Handler(Looper.getMainLooper()).postDelayed(
{
try {

View File

@ -1,14 +1,12 @@
package com.github.libretube.views
import android.os.Bundle
import android.util.Log
import androidx.preference.EditTextPreference
import androidx.preference.ListPreference
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import com.github.libretube.R
import com.github.libretube.databinding.DialogTextPreferenceBinding
import com.github.libretube.extensions.TAG
import com.github.libretube.preferences.PreferenceHelper
import com.google.android.material.dialog.MaterialAlertDialogBuilder