| | |
| | | import android.content.pm.PackageManager; |
| | | import android.support.v4.content.ContextCompat; |
| | | import android.webkit.JavascriptInterface; |
| | | import android.webkit.WebView; |
| | | import android.widget.ImageView; |
| | | import android.widget.TextView; |
| | | |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.tencent.smtt.sdk.WebView; |
| | | import com.weikou.beibeivideo.util.AlibcTradeUtil; |
| | | import com.weikou.beibeivideo.util.JumpActivityUtil; |
| | | import com.weikou.beibeivideo.util.x5.X5WebView; |
| | | |
| | | import org.json.JSONException; |
| | | import org.json.JSONObject; |
| | |
| | | Activity mContext; |
| | | TextView tv_top_bar_middle, tv_top_bar_left2, tv_top_bar_right; |
| | | ImageView iv_right; |
| | | X5WebView webview; |
| | | WebView webview; |
| | | private boolean boo = false; |
| | | |
| | | public BWJavaInterface(Activity activity, X5WebView webview) { |
| | | public BWJavaInterface(Activity activity, WebView webview) { |
| | | super(activity); |
| | | mContext = activity; |
| | | this.webview = webview; |
| | |
| | | |
| | | public BWJavaInterface(Activity activity, TextView tv_top_bar_middle |
| | | , TextView tv_top_bar_left2, TextView tv_top_bar_right |
| | | , ImageView iv_right, X5WebView webview) { |
| | | , ImageView iv_right, WebView webview) { |
| | | super(activity); |
| | | mContext = activity; |
| | | this.tv_top_bar_middle = tv_top_bar_middle; |