mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 14:50:30 +05:30
fixes
This commit is contained in:
parent
95b91e60d9
commit
326573659c
@ -171,7 +171,9 @@ class MainActivity : BaseActivity() {
|
|||||||
PreferenceKeys.BREAK_REMINDER,
|
PreferenceKeys.BREAK_REMINDER,
|
||||||
"0"
|
"0"
|
||||||
)
|
)
|
||||||
if (!breakReminderPref.all { Character.isDigit(it) }) return
|
if (!breakReminderPref.all { Character.isDigit(it) } ||
|
||||||
|
breakReminderPref == "" || breakReminderPref == "0"
|
||||||
|
) return
|
||||||
Handler(Looper.getMainLooper()).postDelayed(
|
Handler(Looper.getMainLooper()).postDelayed(
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
package com.github.libretube.views
|
package com.github.libretube.views
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.util.Log
|
|
||||||
import androidx.preference.EditTextPreference
|
import androidx.preference.EditTextPreference
|
||||||
import androidx.preference.ListPreference
|
import androidx.preference.ListPreference
|
||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import com.github.libretube.R
|
import com.github.libretube.R
|
||||||
import com.github.libretube.databinding.DialogTextPreferenceBinding
|
import com.github.libretube.databinding.DialogTextPreferenceBinding
|
||||||
import com.github.libretube.extensions.TAG
|
|
||||||
import com.github.libretube.preferences.PreferenceHelper
|
import com.github.libretube.preferences.PreferenceHelper
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user