@@ -5,7 +5,6 @@ import android.app.Activity
55import android.content.Intent
66import android.net.Uri
77import android.os.Bundle
8- import android.util.Log
98import android.view.LayoutInflater
109import android.view.View
1110import android.view.ViewGroup
@@ -301,7 +300,6 @@ class WebViewFragment : Fragment(), FileChooserListener {
301300 */
302301 private fun centrallyHandleBackNavigation (canExitApp : Boolean ) {
303302 if (oauthWebView != null && oauthWebViewContainer!! .visibility == View .GONE ) {
304- Log .d(" TAGG" , " WebViewFragment: centrallyHandleBackNavigation: 1" )
305303 // Edge Case: Ideally this case should never arise.
306304 destroyOauthWebView()
307305 if (webView!! .canGoBack()) {
@@ -312,20 +310,16 @@ class WebViewFragment : Fragment(), FileChooserListener {
312310 }
313311 }
314312 } else if (oauthWebView != null && oauthWebViewContainer!! .visibility == View .VISIBLE ) {
315- Log .d(" TAGG" , " WebViewFragment: centrallyHandleBackNavigation: 2" )
316313 // Case where oauthWebView is active.
317314 if (oauthWebView!! .canGoBack()) {
318315 oauthWebView?.goBack()
319316 } else {
320317 destroyOauthWebView()
321318 }
322319 } else if (oauthWebView == null && webView!= null && webView!! .canGoBack()) {
323- Log .d(" TAGG" , " WebViewFragment: centrallyHandleBackNavigation: 3" )
324320 // Case where oauthWebView is fully inactive.
325- Log .d(" TAGG" , " centrallyHandleBackNavigation: canGoBack: " + webView?.canGoBack())
326321 webView?.goBack()
327322 } else {
328- Log .d(" TAGG" , " WebViewFragment: centrallyHandleBackNavigation: 4" )
329323 if (canExitApp) {
330324 handleHomePageReached()
331325 }
0 commit comments