Skip to content

Commit

Permalink
fix(android): use getContext getter instead of direct access (#934)
Browse files Browse the repository at this point in the history
continuation of #932
  • Loading branch information
amrbashir authored Apr 20, 2023
1 parent 4a320b0 commit 4e2b43a
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 4e2b43a

Please sign in to comment.