mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Merge pull request #5126 from Bnyro/master
fix: show error message toast when playlist is not available
This commit is contained in:
commit
92ff9dcaf4
@ -32,6 +32,7 @@ import com.github.libretube.extensions.TAG
|
||||
import com.github.libretube.extensions.dpToPx
|
||||
import com.github.libretube.extensions.serializable
|
||||
import com.github.libretube.extensions.toID
|
||||
import com.github.libretube.extensions.toastFromMainDispatcher
|
||||
import com.github.libretube.helpers.ImageHelper
|
||||
import com.github.libretube.helpers.NavigationHelper
|
||||
import com.github.libretube.helpers.PreferenceHelper
|
||||
@ -390,6 +391,7 @@ class PlaylistFragment : Fragment() {
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
context?.toastFromMainDispatcher(e.localizedMessage.orEmpty())
|
||||
Log.e(TAG(), e.toString())
|
||||
return@repeatOnLifecycle
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user