1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-25 05:42:10 +01:00
This commit is contained in:
Gregor Santner 2016-10-22 20:10:48 +02:00
parent bff4ab2e97
commit 6e7ae16e33

View file

@ -39,14 +39,13 @@ public class DiasporaStreamWebChromeClient extends FileUploadWebChromeClient {
@Override @Override
public void onProgressChanged(WebView wv, int progress) { public void onProgressChanged(WebView wv, int progress) {
super.onProgressChanged(wv, progress); super.onProgressChanged(wv, progress);
if (progress > 10 && progress <= 60) { WebHelper.optimizeMobileSiteLayout(wv);
if (progress > 0 && progress <= 85) {
WebHelper.getUserProfile(wv); WebHelper.getUserProfile(wv);
WebHelper.optimizeMobileSiteLayout(wv);
} }
if (progress > 60) { if (progress > 60) {
WebHelper.optimizeMobileSiteLayout(wv);
String textToBeShared = sharedTextCallback.getSharedText(); String textToBeShared = sharedTextCallback.getSharedText();
if (textToBeShared != null) { if (textToBeShared != null) {
AppLog.d(this, "Share text into webView"); AppLog.d(this, "Share text into webView");