|
|
@@ -13,6 +13,7 @@ import android.support.v7.app.AlertDialog;
|
|
|
import android.text.TextUtils;
|
|
|
import android.view.MotionEvent;
|
|
|
import android.view.View;
|
|
|
+import android.view.ViewGroup;
|
|
|
import android.view.animation.Animation;
|
|
|
import android.view.animation.AnimationUtils;
|
|
|
import android.webkit.CookieManager;
|
|
|
@@ -211,6 +212,9 @@ public class FgtWeb extends BaseFgtWeb {
|
|
|
}
|
|
|
}
|
|
|
if (mWebView != null) {
|
|
|
+ if (mWebView.getParent() != null) {
|
|
|
+ ((ViewGroup) mWebView.getParent()).removeView(mWebView);
|
|
|
+ }
|
|
|
mWebView.setVisibility(View.GONE);
|
|
|
mWebView.removeAllViews();
|
|
|
mWebView.destroy();
|