am ce4384aa: am d2cb9213: Merge "Make back button work in CaptivePortalLogin app like a web browser." into lmp-dev
* commit 'ce4384aa1aa4e94967f9a81ac740f2e435d1ba37': Make back button work in CaptivePortalLogin app like a web browser.
This commit is contained in:
@@ -96,6 +96,16 @@ public class CaptivePortalLoginActivity extends Activity {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
WebView myWebView = (WebView) findViewById(R.id.webview);
|
||||
if (myWebView.canGoBack()) {
|
||||
myWebView.goBack();
|
||||
} else {
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
int id = item.getItemId();
|
||||
|
||||
Reference in New Issue
Block a user