Commits

Luke Plant  committed ab4d3a4

Fixed bug where you can't quit the app with back button if you get redirected to a wifi login page (for example)

  • Participants
  • Parent commits 7161843

Comments (0)

Files changed (1)

File src/net/learnscripture/webviewapp/Dashboard.java

 		WebView engine = (WebView) findViewById(R.id.web_engine);
 		String url = engine.getUrl(); 
 		if (url.equals("http://learnscripture.net/") ||
-			url.equals("http://learnscripture.net/dashboard/")) {
+				url.equals("http://learnscripture.net/dashboard/") ||
+				!engine.canGoBack()) {
 			// exit
 			super.onBackPressed();
 		} else {