From afe7437e0a0f6c315d383e0b6133b13a461c92af Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 7 Jan 2018 04:44:18 -0500 Subject: Enhancement/debug (#605) * Finalize debugger * Add video logging --- app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt index 6f1c0fe4..c45bf23d 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/FrostVideoView.kt @@ -17,6 +17,7 @@ import ca.allanwang.kau.utils.toast import com.devbrackets.android.exomedia.ui.widget.VideoView import com.pitchedapps.frost.R import com.pitchedapps.frost.utils.L +import com.pitchedapps.frost.utils.Prefs /** * Created by Allan Wang on 2017-10-13. @@ -131,6 +132,8 @@ class FrostVideoView @JvmOverloads constructor( if (isExpanded) showControls() } setOnErrorListener { + if (Prefs.analytics) + L.e(it) { "Failed to load video $videoUri" } toast(R.string.video_load_failed, Toast.LENGTH_SHORT) destroy() true -- cgit v1.2.3