mirror of
https://github.com/gsantner/dandelion
synced 2025-12-16 01:01:11 +01:00
Lower bottom toolbar #22
This commit is contained in:
parent
f36502ecc5
commit
14d5f04e2f
6 changed files with 24 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package com.github.dfa.diaspora_android.ui;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
import android.support.v4.widget.SwipeRefreshLayout;
|
||||
import android.util.Log;
|
||||
|
|
@ -34,6 +35,15 @@ public class CustomWebViewClient extends WebViewClient {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPageStarted(WebView view, String url, Bitmap favicon) {
|
||||
super.onPageStarted(view, url, favicon);
|
||||
swipeRefreshLayout.setEnabled(true);
|
||||
if(url.endsWith("/conversations/new")){
|
||||
swipeRefreshLayout.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void onPageFinished(WebView view, String url) {
|
||||
super.onPageFinished(view, url);
|
||||
swipeRefreshLayout.setRefreshing(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue