aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-11-13 05:09:24 -0500
committerGitHub <noreply@github.com>2017-11-13 05:09:24 -0500
commit63d8779ad4fab7d2eb762be34eeca04c7debc6f3 (patch)
tree334f3c0c4c6a717d7c0b0872574cb65b3b50166c /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
parent4aed05a8923a7f76799bbaa254f407f7e11fef0b (diff)
downloadfrost-63d8779ad4fab7d2eb762be34eeca04c7debc6f3.tar.gz
frost-63d8779ad4fab7d2eb762be34eeca04c7debc6f3.tar.bz2
frost-63d8779ad4fab7d2eb762be34eeca04c7debc6f3.zip
Enhancement/video (#484)v1.6.4
* Fix more parsing issues * Try catch decoder resolves #456 * Fix unit test and add null check for images, resolves #458 * Remove downloadservice, resolves #459 * Clean up progress animator * Check for download manager before download attempt * Update strings
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
index 22c77f5f..c644499e 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt
@@ -202,7 +202,7 @@ inline val String?.isFacebookUrl
get() = this != null && this.contains(FACEBOOK_COM)
inline val String?.isVideoUrl
- get() = this != null && this.startsWith(VIDEO_REDIRECT)
+ get() = this != null && (this.startsWith(VIDEO_REDIRECT) || this.startsWith("https://video-"))
fun Context.frostChangelog() = showChangelog(R.xml.frost_changelog, Prefs.textColor) {
theme()