diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 15:56:36 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 15:56:36 +0100 |
| commit | cd495efe10de3a3e4a19491217593aff69df40af (patch) | |
| tree | 72d329a65aa39fa99cff30aa5ff0089a2d5f5489 /main/src/cgeo/geocaching/CacheDetailActivity.java | |
| parent | f6b46a4bab887b18014f9fd43bf0b05377a6a03e (diff) | |
| download | cgeo-cd495efe10de3a3e4a19491217593aff69df40af.zip cgeo-cd495efe10de3a3e4a19491217593aff69df40af.tar.gz cgeo-cd495efe10de3a3e4a19491217593aff69df40af.tar.bz2 | |
Remove unused parameter
Diffstat (limited to 'main/src/cgeo/geocaching/CacheDetailActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/CacheDetailActivity.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java index 1b1b403..6962317 100644 --- a/main/src/cgeo/geocaching/CacheDetailActivity.java +++ b/main/src/cgeo/geocaching/CacheDetailActivity.java @@ -1493,7 +1493,7 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc // cache short description if (StringUtils.isNotBlank(cache.getShortDescription())) { - loadDescription(cache.getShortDescription(), shortDescView, null, null); + loadDescription(cache.getShortDescription(), shortDescView, null); } // long description @@ -1619,7 +1619,7 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc view.findViewById(R.id.loading).setVisibility(View.VISIBLE); final String longDescription = cache.getDescription(); - loadDescription(longDescription, longDescView, loadingView, shortDescView); + loadDescription(longDescription, longDescView, loadingView); // Hide the short description, if it is contained somewhere at the start of the long description. if (shortDescView != null) { @@ -1663,12 +1663,11 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc /** * Load the description in the background. - * @param descriptionString the HTML description as retrieved from the connector - * @param descriptionView the view to fill - * @param loadingIndicatorView the loading indicator view, will be hidden when completed - * @param shortDescView the short description view, may be hidden if included in the long description - */ - private void loadDescription(final String descriptionString, final IndexOutOfBoundsAvoidingTextView descriptionView, final View loadingIndicatorView, final View shortDescView) { + * @param descriptionString the HTML description as retrieved from the connector + * @param descriptionView the view to fill + * @param loadingIndicatorView the loading indicator view, will be hidden when completed + */ + private void loadDescription(final String descriptionString, final IndexOutOfBoundsAvoidingTextView descriptionView, final View loadingIndicatorView) { // The producer produces successives (without then with images) versions of the description. final Observable<Spanned> producer = Observable.create(new OnSubscribeFunc<Spanned>() { @Override @@ -1690,7 +1689,7 @@ public class CacheDetailActivity extends AbstractViewPagerActivity<CacheDetailAc observer.onCompleted(); } catch (final Exception e) { - Log.e("LoadDescriptionTask: ", e); + Log.e("loadDescription", e); observer.onError(e); } return Subscriptions.empty(); |
