Skip to content

Commit

Permalink
fix(android): use getContext getter instead of direct access
Browse files Browse the repository at this point in the history
continuation of #932
  • Loading branch information
amrbashir committed Apr 19, 2023
1 parent ed36c0b commit f8c53e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webview/android/kotlin/RustWebView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class RustWebView(context: Context): WebView(context) {

fun clearAllBrowsingData() {
try {
super.context.deleteDatabase("webviewCache.db");
super.context.deleteDatabase("webview.db");
super.getContext().deleteDatabase("webviewCache.db");
super.getContext().deleteDatabase("webview.db");
super.clearCache(true);
super.clearHistory();
super.clearFormData();
Expand Down

0 comments on commit f8c53e9

Please sign in to comment.