Bugfix: Don't show empty page on app startup

This commit is contained in:
Herbert Reiter
2020-10-11 15:57:00 +02:00
parent 7e4d30bbe9
commit 2a16dbefb8
@@ -418,7 +418,7 @@ public class MainActivity extends AppCompatActivity {
webView.setVisibility(View.VISIBLE);
// if WebView is shown the first time, go to start page
if (!previousVisible) {
if (!previousVisible || webView.getUrl() == null) {
loadUrl(SERVER_BASE_URL);
}
} else {