|
|
@ -130,6 +130,7 @@ import androidx.preference.PreferenceManager;
|
|
|
|
import androidx.recyclerview.selection.SelectionTracker;
|
|
|
|
import androidx.recyclerview.selection.SelectionTracker;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
import androidx.viewpager.widget.PagerAdapter;
|
|
|
|
import androidx.viewpager.widget.PagerAdapter;
|
|
|
|
|
|
|
|
import androidx.webkit.WebViewCompat;
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.android.material.bottomnavigation.BottomNavigationView;
|
|
|
|
import com.google.android.material.bottomnavigation.BottomNavigationView;
|
|
|
|
import com.google.android.material.snackbar.Snackbar;
|
|
|
|
import com.google.android.material.snackbar.Snackbar;
|
|
|
@ -563,6 +564,11 @@ public class Helper {
|
|
|
|
|
|
|
|
|
|
|
|
private static boolean _hasWebView(Context context) {
|
|
|
|
private static boolean _hasWebView(Context context) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
// Canary 127.0.6510.0 is broken
|
|
|
|
|
|
|
|
PackageInfo pkg = WebViewCompat.getCurrentWebViewPackage(context);
|
|
|
|
|
|
|
|
if (pkg != null && pkg.getLongVersionCode() == 651000033)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
PackageManager pm = context.getPackageManager();
|
|
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
|
|
|
|
if (pm.hasSystemFeature(PackageManager.FEATURE_WEBVIEW)) {
|
|
|
|
WebView view = new WebView(context);
|
|
|
|
WebView view = new WebView(context);
|
|
|
|