mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-24 23:44:20 +01:00
hide hidden folders if set so
This commit is contained in:
parent
cae1c040ec
commit
60494b0cfd
@ -16,6 +16,7 @@ import android.support.design.widget.Snackbar;
|
||||
import android.support.v4.app.ActivityCompat;
|
||||
import android.support.v4.widget.SwipeRefreshLayout;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.util.Log;
|
||||
import android.util.SparseBooleanArray;
|
||||
import android.view.ActionMode;
|
||||
import android.view.Menu;
|
||||
@ -229,7 +230,7 @@ public class MainActivity extends SimpleActivity
|
||||
}
|
||||
|
||||
final List<Directory> dirs = new ArrayList<>(directories.values());
|
||||
filderDirectories(dirs);
|
||||
filterDirectories(dirs);
|
||||
Directory.mSorting = mConfig.getDirectorySorting();
|
||||
Collections.sort(dirs);
|
||||
|
||||
@ -239,8 +240,10 @@ public class MainActivity extends SimpleActivity
|
||||
return dirs;
|
||||
}
|
||||
|
||||
private void filderDirectories(List<Directory> dirs) {
|
||||
removeHiddenFolders(dirs);
|
||||
private void filterDirectories(List<Directory> dirs) {
|
||||
if (!mConfig.getShowHiddenFolders())
|
||||
removeHiddenFolders(dirs);
|
||||
|
||||
removeNoMediaFolders(dirs);
|
||||
}
|
||||
|
||||
|
@ -166,6 +166,7 @@ public class MediaActivity extends SimpleActivity
|
||||
|
||||
private void hideDirectory() {
|
||||
mConfig.addHiddenDirectory(mPath);
|
||||
finish();
|
||||
}
|
||||
|
||||
private void deleteDirectoryIfEmpty() {
|
||||
|
Loading…
Reference in New Issue
Block a user