From bd68f575327b3a1fde2ce4be83c0f837355d9be1 Mon Sep 17 00:00:00 2001 From: "kai.cao" Date: Wed, 29 Apr 2015 15:42:14 +0800 Subject: [CMFileManager]Fix click two times when check the 'Skip media scan' in Secure storage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Procedures 1.Go to “File Manager”. 2.Enter the secure directory and Press the menu button. 3.Press the Properties item. 4.Check the media scan. Pop "Failed to prevent media scanning" and should click again. Change-Id: I7990683e373c05fdfcee47bf5189820206bceba5 --- src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java diff --git a/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java b/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java old mode 100644 new mode 100755 index 0c3ebf82..281a2af5 --- a/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java +++ b/src/com/cyanogenmod/filemanager/ui/dialogs/FsoPropertiesDialog.java @@ -367,7 +367,7 @@ public class FsoPropertiesDialog // Check if we should show "Skip media scan" toggle if (!FileHelper.isDirectory(this.mFso) || - !StorageHelper.isPathInStorageVolume(this.mFso.getFullPath())) { + !StorageHelper.isPathInStorageVolume(this.mFso.getFullPath()) || this.mFso.isSecure()) { LinearLayout fsoSkipMediaScanView = (LinearLayout)contentView.findViewById(R.id.fso_skip_media_scan_view); fsoSkipMediaScanView.setVisibility(View.GONE); -- cgit v1.2.3