aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-12-21 20:55:51 -0500
committerGitHub <noreply@github.com>2017-12-21 20:55:51 -0500
commitf1e1aec8487fd148eb8e75fe016a8438958989ad (patch)
treec4d614e6a3e7d6ef9fa7c04452c357d06bc50279 /app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
parentd683cae6ffe644a9f63eea6cf3b7e59d2bde617b (diff)
downloadfrost-f1e1aec8487fd148eb8e75fe016a8438958989ad.tar.gz
frost-f1e1aec8487fd148eb8e75fe016a8438958989ad.tar.bz2
frost-f1e1aec8487fd148eb8e75fe016a8438958989ad.zip
misc (#566)
* Fix click validator * Update tests * Feature/fb requests (#567) * Add initial requesting interface * Update unit tests and dependencies * Resolve lint * Fix lint 2 * Fix toolbar location, closes #439 * Add prev version code, closes #551 * Clear test val * Update changelog
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
index e8135f5b..b567801b 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostJSI.kt
@@ -1,6 +1,5 @@
package com.pitchedapps.frost.web
-import android.support.v4.widget.SwipeRefreshLayout
import android.webkit.JavascriptInterface
import com.pitchedapps.frost.activities.MainActivity
import com.pitchedapps.frost.contracts.VideoViewHolder
@@ -68,7 +67,7 @@ class FrostJSI(val web: FrostWebView) {
*/
@JavascriptInterface
fun disableSwipeRefresh(disable: Boolean) {
- web.post { (web.parent as? SwipeRefreshLayout)?.isEnabled = !disable }
+ web.post { web.parent.swipeEnabled = !disable }
}
@JavascriptInterface