OSDN Git Service

[CMFileManager]Fix click two times when check the 'Skip media scan' in Secure storage
authorkai.cao <kai.cao@ck-telecom.com>
Wed, 29 Apr 2015 07:42:14 +0000 (15:42 +0800)
committerkai.cao <kai.cao@ck-telecom.com>
Wed, 29 Apr 2015 07:54:41 +0000 (15:54 +0800)
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 [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0c3ebf8..281a2af
@@ -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);