diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-03-25 11:14:33 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-03-25 11:14:33 +0200 |
commit | 3156aedd92ab76b9727a6108d9a8e9e78b816b63 (patch) | |
tree | f33ef36773e7fa95c87d459d52393ba56447d76e /main | |
parent | 352e7617da07d65b29fa61b985543a3a048f095a (diff) | |
download | cgeo-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.java | 18 |
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 } } |