diff options
author | Allan Wang <me@allanwang.ca> | 2017-12-11 21:18:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 21:18:57 -0500 |
commit | b90dcc04376b48d2b91fea8a5de48acbd7f885c4 (patch) | |
tree | 6aded93178a507631215ac2309485c0fb3f6fe4c /app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt | |
parent | db262e95779e0a17275bdb94be2b0ac12819178e (diff) | |
download | frost-b90dcc04376b48d2b91fea8a5de48acbd7f885c4.tar.gz frost-b90dcc04376b48d2b91fea8a5de48acbd7f885c4.tar.bz2 frost-b90dcc04376b48d2b91fea8a5de48acbd7f885c4.zip |
misc (#548)
* Separate scss files and fix some issues
* Delete blank css
* Update menu stylings
* Add branch details to auto release
* Update script and readme
* Test 2
* Test 3
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.kt | 10 |
1 files changed, 7 insertions, 3 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 ccc4033c..5a83c3f3 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Utils.kt @@ -221,17 +221,21 @@ inline val String?.isFacebookUrl get() = this != null && contains(FACEBOOK_COM) /** - * [true] is url is a video and can be accepted by VideoViewer + * [true] if url is a video and can be accepted by VideoViewer */ inline val String?.isVideoUrl get() = this != null && (startsWith(VIDEO_REDIRECT) || startsWith("https://video-")) /** - * [true] is url can be displayed in a different webview + * [true] if url can be displayed in a different webview */ inline val String?.isIndependent get() = this == null || (startsWith("http") && !isFacebookUrl) - || !contains("photoset_token") + || dependentSet.all { !contains(it) } + +val dependentSet = setOf( + "photoset_token", "direct_action_execute" +) inline val String?.isExplicitIntent get() = this != null && startsWith("intent://") |