Commit 1c4d7c68 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix Medialibrary folder uncheck in settings

parent 056f815b
......@@ -214,16 +214,16 @@ public class StorageBrowserFragment extends FileBrowserFragment implements Entry
if (entryPoint.endsWith("/"))
entryPoint = entryPoint.substring(0, entryPoint.length()-1);
if (mProcessingFolders.containsKey(entryPoint)) {
final String finalMrl = entryPoint;
final CheckBox cb = mProcessingFolders.remove(entryPoint);
mHandler.post(new Runnable() {
@Override
public void run() {
mProcessingFolders.get(finalMrl).setEnabled(true);
cb.setEnabled(true);
if (success) {
((StorageBrowserAdapter)mAdapter).updateMediaDirs();
mAdapter.notifyDataSetChanged();
} else
mProcessingFolders.get(finalMrl).setChecked(false);
cb.setChecked(true);
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment