Fix file loading in ExplorerActivity
This commit is contained in:
parent
087a7728e2
commit
909ea47a19
1 changed files with 17 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue