1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-12-22 19:08:03 +01:00

Removed swipe-to-refresh functionality in new status messages and existing conversations to approach #33

This commit is contained in:
vanitasvitae 2016-06-22 21:43:00 +02:00
parent e48edbf652
commit 868e269a5c
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ public class CustomWebViewClient extends WebViewClient {
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
swipeRefreshLayout.setEnabled(true);
if(url.endsWith("/conversations/new")){
if(url.contains(app.getSettings().getPodDomain()+"/conversations/") || url.endsWith("status_messages/new")){
swipeRefreshLayout.setEnabled(false);
}
}

View file

@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// NOTE: Do not place your application dependencies here; they belong