aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/FileList.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/files/FileList.java')
-rw-r--r--main/src/cgeo/geocaching/files/FileList.java32
1 files changed, 8 insertions, 24 deletions
diff --git a/main/src/cgeo/geocaching/files/FileList.java b/main/src/cgeo/geocaching/files/FileList.java
index 576aa2c..48a98a7 100644
--- a/main/src/cgeo/geocaching/files/FileList.java
+++ b/main/src/cgeo/geocaching/files/FileList.java
@@ -63,30 +63,14 @@ public abstract class FileList<T extends ArrayAdapter<File>> extends AbstractLis
@Override
public void handleMessage(Message msg) {
- try {
- if (CollectionUtils.isEmpty(files)) {
- if (waitDialog != null) {
- waitDialog.dismiss();
- }
-
- showToast(res.getString(R.string.file_list_no_files));
-
- finish();
- return;
- } else {
- if (adapter != null) {
- adapter.notifyDataSetChanged();
- }
- }
-
- if (waitDialog != null) {
- waitDialog.dismiss();
- }
- } catch (Exception e) {
- if (waitDialog != null) {
- waitDialog.dismiss();
- }
- Log.e("cgFileList.loadFilesHandler: " + e.toString());
+ if (waitDialog != null) {
+ waitDialog.dismiss();
+ }
+ if (CollectionUtils.isEmpty(files)) {
+ showToast(res.getString(R.string.file_list_no_files));
+ finish();
+ } else if (adapter != null) {
+ adapter.notifyDataSetChanged();
}
}
};