android: tutorial-5: Fix crash when trying to skip video
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9104>
This commit is contained in:
parent
0c5ea7f857
commit
2549f63b3c
@ -204,6 +204,7 @@ public class FileDialog extends ListActivity {
|
||||
TreeMap<String, String> dirsPathMap = new TreeMap<String, String>();
|
||||
TreeMap<String, String> filesMap = new TreeMap<String, String>();
|
||||
TreeMap<String, String> filesPathMap = new TreeMap<String, String>();
|
||||
if (files != null) {
|
||||
for (File file : files) {
|
||||
if (file.isDirectory()) {
|
||||
String dirName = file.getName();
|
||||
@ -233,6 +234,7 @@ public class FileDialog extends ListActivity {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
item.addAll(dirsMap.tailMap("").values());
|
||||
item.addAll(filesMap.tailMap("").values());
|
||||
path.addAll(dirsPathMap.tailMap("").values());
|
||||
|
Loading…
x
Reference in New Issue
Block a user