mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
add comment
This commit is contained in:
parent
291700dfc7
commit
eb93e2bb7e
1 changed files with 5 additions and 1 deletions
|
@ -237,7 +237,11 @@ public class WebxdcActivity extends WebViewActivity implements DcEventCenter.DcE
|
|||
long timeDelta = System.currentTimeMillis() - lastOpenTime;
|
||||
final String url = this.baseURL + "/webxdc_bootstrap324567869.html?i=" + (internetAccess? "1" : "0") + "&href=" + encodedHref;
|
||||
Util.runOnAnyBackgroundThread(() -> {
|
||||
if (timeDelta < 2000) {Util.sleep(1000);}
|
||||
if (timeDelta < 2000) {
|
||||
// this is to avoid getting stuck in the FILL500 in some devices if the
|
||||
// previous webview was not destroyed yet and a new app is opened too soon
|
||||
Util.sleep(1000);
|
||||
}
|
||||
Util.runOnMain(() -> webView.loadUrl(url));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue