diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2014-08-19 21:14:46 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2014-08-19 21:14:46 +0200 |
| commit | 51fd5c1a000c2867eb6bf34f7b250285762b859b (patch) | |
| tree | 6763f2eaaf67c3b107ba30f5276160e446298fe5 /main/src/cgeo/geocaching/SearchActivity.java | |
| parent | eab8c50fa8a6be5f373ef7a484eb03b7f82c0861 (diff) | |
| download | cgeo-51fd5c1a000c2867eb6bf34f7b250285762b859b.zip cgeo-51fd5c1a000c2867eb6bf34f7b250285762b859b.tar.gz cgeo-51fd5c1a000c2867eb6bf34f7b250285762b859b.tar.bz2 | |
cleanup search activity showcase
Diffstat (limited to 'main/src/cgeo/geocaching/SearchActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/SearchActivity.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/main/src/cgeo/geocaching/SearchActivity.java b/main/src/cgeo/geocaching/SearchActivity.java index 6a4453c..363b157 100644 --- a/main/src/cgeo/geocaching/SearchActivity.java +++ b/main/src/cgeo/geocaching/SearchActivity.java @@ -4,6 +4,7 @@ import butterknife.ButterKnife; import butterknife.InjectView; import cgeo.geocaching.activity.AbstractActionBarActivity; +import cgeo.geocaching.activity.ShowcaseViewBuilder; import cgeo.geocaching.connector.ConnectorFactory; import cgeo.geocaching.connector.IConnector; import cgeo.geocaching.connector.capability.ISearchByGeocode; @@ -419,14 +420,12 @@ public class SearchActivity extends AbstractActionBarActivity implements Coordin fromActivity.startActivityForResult(searchIntent, MainActivity.SEARCH_REQUEST_CODE); } - // The showcase doesn't work well with the search activity, because on searching a geocode (or - // selecting a cache from the search field) we immediately close the activity. That in turn confuses the delayed - // creation of the showcase bitmap. - // - // @Override - // protected ShowcaseViewBuilder getShowcase() { - // return new ShowcaseViewBuilder(this) - // .setTarget(new ActionItemTarget(this, R.id.menu_search_own_caches)) - // .setContent(R.string.showcase_search_title, R.string.showcase_search_text); - // } + @Override + protected ShowcaseViewBuilder getShowcase() { + // The showcase doesn't work well with the search activity, because on searching a geocode (or + // selecting a cache from the search field) we immediately close the activity. That in turn confuses the delayed + // creation of the showcase bitmap. To avoid someone running into this issue again, this method explicitly overrides + // the parent method with the same implementation. + return null; + } } |
