Disable cache
parent
942a1eee2e
commit
c10f3c1296
|
@ -31,8 +31,8 @@ public class MainActivity extends AppCompatActivity {
|
||||||
protected void initializeWebView() {
|
protected void initializeWebView() {
|
||||||
binding.webview.setWebViewClient(new WebViewClient() {
|
binding.webview.setWebViewClient(new WebViewClient() {
|
||||||
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
|
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
|
||||||
view.loadUrl(request.getUrl().toString());
|
view.loadUrl(request.getUrl().toString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
webSettings.setDatabaseEnabled(true);
|
webSettings.setDatabaseEnabled(true);
|
||||||
webSettings.setUserAgentString("memories-native-android/0.0");
|
webSettings.setUserAgentString("memories-native-android/0.0");
|
||||||
|
|
||||||
|
binding.webview.clearCache(true);
|
||||||
binding.webview.addJavascriptInterface(mNativeX, "nativex");
|
binding.webview.addJavascriptInterface(mNativeX, "nativex");
|
||||||
binding.webview.loadUrl("http://10.0.2.2:8035/index.php/apps/memories/");
|
binding.webview.loadUrl("http://10.0.2.2:8035/index.php/apps/memories/");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue