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

Commit c71f084f authored by Guang Zhu's avatar Guang Zhu Committed by The Android Open Source Project
Browse files

am 7757656a: Changed logic to handle timeout pages.

Merge commit '7757656a'

* commit '7757656a':
  Changed logic to handle timeout pages.
parents 36d3ebb8 7757656a
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);
        }
    }