mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 08:01:50 +01:00
Better WebView present test
This commit is contained in:
@@ -1513,7 +1513,9 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
|
||||
|
||||
this.dp24 = Math.round(24 * context.getResources().getDisplayMetrics().density);
|
||||
this.theme = prefs.getString("theme", "light");
|
||||
this.hasWebView = Helper.classExists("android.webkit.WebView");
|
||||
|
||||
PackageManager pm = context.getPackageManager();
|
||||
this.hasWebView = pm.hasSystemFeature("android.software.webview");
|
||||
}
|
||||
|
||||
private static final DiffUtil.ItemCallback<TupleMessageEx> DIFF_CALLBACK =
|
||||
|
||||
Reference in New Issue
Block a user