cordova-plugin-mserviceinterface-2.0 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-mserviceinterface-2.0",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "This plugin establishes the connection to the native interface and performs the requested task.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
3
3
  xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  id="cordova-plugin-mserviceinterface-2.0"
5
- version="1.0.61">
5
+ version="1.0.62">
6
6
  <name>mserviceinterface-2.0</name>
7
7
  <description>This plugin establishes the connection to the native interface and performs the requested task.</description>
8
8
  <author>selfservit@gmail.com</author>
@@ -1142,17 +1142,8 @@ public class mInterface extends CordovaPlugin implements com.google.android.gms.
1142
1142
  openFile = new Intent(MediaStore.ACTION_PICK_IMAGES);
1143
1143
  openFile.setType("image/*");
1144
1144
  } else {
1145
- if (Build.MANUFACTURER.equals("samsung")) {
1146
- /* SELECT FILE FOR SAMSUNG DEVICES */
1147
- openFile = new Intent("com.sec.android.app.myfiles.PICK_DATA");
1148
- openFile.putExtra("CONTENT_TYPE", "*/*");
1149
- } else {
1150
- /* SELECT FILE FOR EXCEPT SAMSUNG DEVICES */
1151
- openFile = new Intent(Intent.ACTION_GET_CONTENT);
1152
- openFile.setType("*/*");
1153
- openFile.addCategory(Intent.CATEGORY_OPENABLE);
1154
- openFile.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
1155
- }
1145
+ openFile = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
1146
+ openFile.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
1156
1147
  }
1157
1148
 
1158
1149
  selectFile = Intent.createChooser(openFile, "Select File");