aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-03-25 11:14:33 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-03-25 11:14:33 +0200
commit3156aedd92ab76b9727a6108d9a8e9e78b816b63 (patch)
treef33ef36773e7fa95c87d459d52393ba56447d76e /main
parent352e7617da07d65b29fa61b985543a3a048f095a (diff)
downloadcgeo-3156aedd92ab76b9727a6108d9a8e9e78b816b63.zip
cgeo-3156aedd92ab76b9727a6108d9a8e9e78b816b63.tar.gz
cgeo-3156aedd92ab76b9727a6108d9a8e9e78b816b63.tar.bz2
Cleanup: remove try/catch around non-throwing notifyDataSetChanged()
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/CacheDetailActivity.java18
1 files changed, 2 insertions, 16 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java
index ff3931b..1339a42 100644
--- a/main/src/cgeo/geocaching/CacheDetailActivity.java
+++ b/main/src/cgeo/geocaching/CacheDetailActivity.java
@@ -1584,14 +1584,7 @@ public class CacheDetailActivity extends AbstractActivity {
updateStatusMsg((String) msg.obj);
} else {
storeThread = null;
-
- try {
- CacheDetailActivity.this.notifyDataSetChanged(); // reload cache details
- } catch (Exception e) {
- showToast(res.getString(R.string.err_store_failed));
-
- Log.e(Settings.tag, "CacheDetailActivity.storeCacheHandler: " + e.toString());
- }
+ CacheDetailActivity.this.notifyDataSetChanged(); // reload cache details
}
}
@@ -1609,14 +1602,7 @@ public class CacheDetailActivity extends AbstractActivity {
updateStatusMsg((String) msg.obj);
} else {
refreshThread = null;
-
- try {
- CacheDetailActivity.this.notifyDataSetChanged(); // reload cache details
- } catch (Exception e) {
- showToast(res.getString(R.string.err_refresh_failed));
-
- Log.e(Settings.tag, "CacheDetailActivity.refreshCacheHandler: " + e.toString());
- }
+ CacheDetailActivity.this.notifyDataSetChanged(); // reload cache details
}
}