List of usage examples for org.apache.cordova CordovaResourceApi URI_TYPE_ASSET
int URI_TYPE_ASSET
To view the source code for org.apache.cordova CordovaResourceApi URI_TYPE_ASSET.
Click Source Link
From source file:com.zsxsoft.cordova.x5.X5WebViewClient.java
License:Apache License
private static boolean needsSpecialsInAssetUrlFix(Uri uri) { if (CordovaResourceApi.getUriType(uri) != CordovaResourceApi.URI_TYPE_ASSET) { return false; }//ww w .j ava 2 s. c om if (uri.getQuery() != null || uri.getFragment() != null) { return true; } if (!uri.toString().contains("%")) { return false; } switch (android.os.Build.VERSION.SDK_INT) { case android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH: case android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1: return true; } return false; }
From source file:org.jeremyup.cordova.x5engine.X5WebViewClient.java
License:Apache License
private static boolean needsSpecialsInAssetUrlFix(Uri uri) { if (CordovaResourceApi.getUriType(uri) != CordovaResourceApi.URI_TYPE_ASSET) { return false; }// w ww . j av a 2 s . c om if (uri.getQuery() != null || uri.getFragment() != null) { return true; } if (!uri.toString().contains("%")) { return false; } switch (Build.VERSION.SDK_INT) { case Build.VERSION_CODES.ICE_CREAM_SANDWICH: case Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1: return true; } return false; }