Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7757656a authored by Guang Zhu's avatar Guang Zhu
Browse files

Changed logic to handle timeout pages.

parent 19cd309f
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -134,6 +134,7 @@ public class ReliabilityTestActivity extends Activity {
        webView.stopLoading();
        Log.v(LOGTAG, "Page timeout triggered, progress = " + progress);
        timeoutFlag = true;
        handler.postDelayed(pageDoneRunner, manualDelay);
    }
    
    public boolean waitUntilDone() {
@@ -194,6 +195,8 @@ public class ReliabilityTestActivity extends Activity {
        @Override
        public void onPageFinished(WebView view, String url) {
            Log.v(LOGTAG, "onPageFinished: " + url);
            // let handleTimeout take care of finishing the page
            if(!timeoutFlag)
                handler.postDelayed(new WebViewStatusChecker(), 500);
        }
    }