Skip to content

Commit

Permalink
fix: fix WebView导错包名
Browse files Browse the repository at this point in the history
  • Loading branch information
LitterSun committed Dec 3, 2020
1 parent cb0bcd4 commit 0d0ef96
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.view.menu.ListMenuItemView;
import android.support.v7.widget.RecyclerView;
import android.webkit.WebView;
import android.widget.AdapterView;

import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.Fragment;

import com.tencent.smtt.sdk.WebChromeClient;
import com.tencent.smtt.sdk.WebView;

public class ClassExistHelper {
public static boolean sHasSupportViewPager;
public static boolean sHasSupportListMenuItemView;
Expand Down Expand Up @@ -131,17 +129,13 @@ public static boolean instanceofAndroidXSwipeRefreshLayout(Object view) {
}

public static boolean instanceOfX5WebView(Object view) {
return sHasX5WebView && view instanceof WebView;
return sHasX5WebView && view instanceof com.tencent.smtt.sdk.WebView;
}

public static boolean instanceOfUcWebView(Object view) {
return sHasUcWebView && view instanceof com.uc.webview.export.WebView;
}

public static boolean instanceOfX5ChromeClient(Object client) {
return sHasX5WebView && client instanceof WebChromeClient;
}

public static boolean instanceOfSupportAlertDialog(Object dialog) {
return sHasSupportAlertDialog && dialog instanceof android.support.v7.app.AlertDialog;
}
Expand Down

0 comments on commit 0d0ef96

Please sign in to comment.