Fix file loading in ExplorerActivity

This commit is contained in:
William Brawner 2018-10-16 07:50:29 -05:00 committed by William Brawner
parent 087a7728e2
commit 909ea47a19

View file

@ -216,8 +216,9 @@ public class ExplorerActivity extends AppCompatActivity {
setTitle(filesDir.getName());
filePath.set(filesDir.getAbsolutePath());
fileHandler.post(() -> {
List<HashMap<String, Object>> files = loadFiles(filesDir);
final List<HashMap<String, Object>> files = loadFiles(filesDir);
runOnUiThread(() -> {
listView.setAdapter(new SimpleAdapter(
this,
files,
@ -235,6 +236,7 @@ public class ExplorerActivity extends AppCompatActivity {
}
});
});
});
}
void handleFileClick(File file) {