remove the file.canWrite check
This commit is contained in:
parent
3e2cfe90bc
commit
d80a1bd185
2 changed files with 1 additions and 5 deletions
|
@ -171,8 +171,7 @@ class Utils {
|
|||
}
|
||||
|
||||
fun isShowingWritePermissions(activity: Activity, file: File): Boolean {
|
||||
return if ((needsStupidWritePermissions(activity, file.absolutePath) && !file.canWrite()) ||
|
||||
(isKitkat() && Config.newInstance(activity).treeUri.isEmpty())) {
|
||||
return if ((needsStupidWritePermissions(activity, file.absolutePath) && Config.newInstance(activity).treeUri.isEmpty())) {
|
||||
WritePermissionDialog(activity, object : WritePermissionDialog.OnWritePermissionListener {
|
||||
override fun onConfirmed() {
|
||||
val intent = Intent(Intent.ACTION_OPEN_DOCUMENT_TREE)
|
||||
|
|
|
@ -414,9 +414,6 @@ public class MediaActivity extends SimpleActivity
|
|||
}
|
||||
|
||||
private void displayCopyDialog() {
|
||||
if (Utils.Companion.isShowingWritePermissions(this, new File(mPath)))
|
||||
return;
|
||||
|
||||
final List<File> files = new ArrayList<>();
|
||||
|
||||
final SparseBooleanArray items = mGridView.getCheckedItemPositions();
|
||||
|
|
Loading…
Reference in a new issue