Fix captive portal can't show certificate problem

Captive portal overrides two shouldOverrideUrlLoading methods,
but show certificate logic only be implemented in deprecated one.

Bug: 133714666
Test: -build, flash, boot
      -atest FramworksNetTests
      -manual test

Change-Id: Ibdcfb814d9552563416fc30b314916559862c361
This commit is contained in:
markchien
2019-05-29 17:07:24 +08:00
parent 1c6fb830c3
commit 1302494b6e

View File

@@ -484,7 +484,10 @@ public class CaptivePortalLoginActivity extends Activity {
if (request.isForMainFrame()) {
mMainFrameUrl = request.getUrl().toString();
}
return false;
// Be careful that two shouldOverrideUrlLoading methods are overridden, but
// shouldOverrideUrlLoading(WebView view, String url) was deprecated in API level 24.
// TODO: delete deprecated one ??
return shouldOverrideUrlLoading(view, mMainFrameUrl);
}
// A web page consisting of a large broken lock icon to indicate SSL failure.