|
@@ -284,11 +284,12 @@ public class FileController implements MethodChannel.MethodCallHandler
|
284
|
284
|
.getContentResolver()
|
285
|
285
|
.delete(uri, null, null);
|
286
|
286
|
Log.d(TAG, "删除的数量=" + deleted);
|
287
|
|
- if (deleted <= 0)
|
|
287
|
+ //有些设备即便删除成功了也会返回0,所以去掉判断
|
|
288
|
+ /*if (deleted <= 0)
|
288
|
289
|
{
|
289
|
290
|
result.error("304", "删除失败", new Exception("删除失败"));
|
290
|
291
|
return;
|
291
|
|
- }
|
|
292
|
+ }*/
|
292
|
293
|
result.success(null);
|
293
|
294
|
}
|
294
|
295
|
//捕获权限异常,请求权限
|
|
@@ -351,14 +352,15 @@ public class FileController implements MethodChannel.MethodCallHandler
|
351
|
352
|
.getContentResolver()
|
352
|
353
|
.delete(uri, null, null);
|
353
|
354
|
Log.d(TAG, "删除的数量=" + deleted);
|
354
|
|
- if (deleted <= 0)
|
|
355
|
+ //有些设备即便删除成功了也会返回0,所以去掉判断
|
|
356
|
+ /*if (deleted <= 0)
|
355
|
357
|
{
|
356
|
358
|
if (result != null)
|
357
|
359
|
{
|
358
|
360
|
result.error("304", "删除失败", new Exception("删除失败"));
|
359
|
361
|
}
|
360
|
362
|
return;
|
361
|
|
- }
|
|
363
|
+ }*/
|
362
|
364
|
if (result != null)
|
363
|
365
|
{
|
364
|
366
|
result.success(null);
|