aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/activity/AbstractActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/activity/AbstractActivity.java')
-rw-r--r--main/src/cgeo/geocaching/activity/AbstractActivity.java23
1 files changed, 5 insertions, 18 deletions
diff --git a/main/src/cgeo/geocaching/activity/AbstractActivity.java b/main/src/cgeo/geocaching/activity/AbstractActivity.java
index 442217d..4480f8f 100644
--- a/main/src/cgeo/geocaching/activity/AbstractActivity.java
+++ b/main/src/cgeo/geocaching/activity/AbstractActivity.java
@@ -77,26 +77,13 @@ public abstract class AbstractActivity extends ActionBarActivity implements IAbs
initializeCommonFields();
}
- /**
- * Call this method to actually present a showcase. The right time to invoke this method depends on the showcase
- * target. I.e. if the showcase target is an action bar item, this method can only be invoked after that item has
- * been created in onCreateOptionsMenu.
- */
- protected final void presentShowcase() {
- final ShowcaseViewBuilder builder = getShowcase();
- if (builder != null) {
- builder.setStyle(R.style.ShowcaseView);
- builder.build();
- }
+ @Override
+ public final void presentShowcase() {
+ ActivityMixin.presentShowcase(this);
}
- /**
- * Override this method to create a showcase view highlighting the most important UI element.
- *
- * @return
- */
- @SuppressWarnings("static-method")
- protected ShowcaseViewBuilder getShowcase() {
+ @Override
+ public ShowcaseViewBuilder getShowcase() {
// do nothing by default
return null;
}