Skip to content

Commit

Permalink
Save WebView logs in adb
Browse files Browse the repository at this point in the history
Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma committed Feb 21, 2024
1 parent ac333bf commit 2669c83
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.webkit.ConsoleMessage
import android.webkit.JavascriptInterface
import android.webkit.PermissionRequest
import android.webkit.WebChromeClient
Expand Down Expand Up @@ -179,6 +180,11 @@ abstract class AbstractWebViewFragment : Fragment(), ConnectionFactory.UpdateLis
}
}
}

override fun onConsoleMessage(message: ConsoleMessage): Boolean {
Log.d(TAG, "${message.message()} -- From line ${message.lineNumber()} of ${message.sourceId()}")
return true
}
}

isStackRoot = requireArguments().getBoolean(KEY_IS_STACK_ROOT)
Expand Down

0 comments on commit 2669c83

Please sign in to comment.