Skip to content

Commit

Permalink
Use destroyWebView() method
Browse files Browse the repository at this point in the history
  • Loading branch information
velazcod committed Dec 26, 2013
1 parent 3c56956 commit 5c32e3e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ public void onClick(View v) {
break;
case R.id.menu_kill:
mWebViewContainer.removeView(mWebView);
mWebView.removeAllViews();
mWebView.destroy();
destroyWebView();
finish();
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ protected void shareCurrentPage() {
*/
protected void destroyWebView() {
if (mWebView != null) {
mWebView.removeAllViews();

/** Free memory and destroy WebView */
mWebView.freeMemory();
mWebView.destroy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, Str
* associated with this file picker.
*/
@SuppressWarnings("unused")
public void openFileChooser(ValueCallback<Uri> uploadMsg,
String acceptType) {
public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType) {
openFileChooser(uploadMsg, acceptType, "");
}

Expand Down

0 comments on commit 5c32e3e

Please sign in to comment.