Changes to conform to new overlay format
- Added new overlay resources and checks for new resource values
- Removed all references to carrier specific lookups and
converted them to overlay implementations instead.
- Removed old resources from assets directory
Change-Id: I5143b499ffb6f1e08d1f9c846eec94300de87561
diff --git a/src/com/android/browser/UploadHandler.java b/src/com/android/browser/UploadHandler.java
index 51ca7f9..e3eda33 100644
--- a/src/com/android/browser/UploadHandler.java
+++ b/src/com/android/browser/UploadHandler.java
@@ -119,10 +119,10 @@
}
// Add for carrier feature - prevent uploading DRM type files.
- String browserRes = mController.getActivity().getResources().
- getString(R.string.config_carrier_resource);
+ boolean drmUploadEnabled = mController.getContext().getResources().getBoolean(
+ R.bool.drm_uploads);
boolean isDRMFileType = false;
- if ("ct".equals(browserRes) && filePath != null
+ if (drmUploadEnabled && filePath != null
&& (filePath.endsWith(".fl") || filePath.endsWith(".dm")
|| filePath.endsWith(".dcf") || filePath.endsWith(".dr")
|| filePath.endsWith(".dd"))) {