From 5d6f52ac80c2caf0ef5520d6cfb69043ec998690 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 12 Jul 2014 14:56:15 +0200 Subject: [PATCH] Update main menu --- .../net/osmand/plus/activities/MainMenuActivity.java | 2 +- .../osmand/plus/activities/MapActivityActions.java | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index 9cfe04a71a..b0b86db209 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -57,7 +57,7 @@ public class MainMenuActivity extends Activity { public static final int APP_EXIT_CODE = 4; public static final String APP_EXIT_KEY = "APP_EXIT_KEY"; - protected static final boolean TIPS_AND_TRICKS = false; + public static final boolean TIPS_AND_TRICKS = false; private ProgressDialog startProgressDialog; diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 136a1bf45b..a9db9b040f 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -906,9 +906,14 @@ public class MapActivityActions implements DialogProvider { @Override public void onContextMenuClick(int itemId, int pos, boolean isChecked, DialogInterface dialog) { - TipsAndTricksActivity tactivity = new TipsAndTricksActivity(mapActivity); - Dialog dlg = tactivity.getDialogToShowTips(false, true); - dlg.show(); + if (MainMenuActivity.TIPS_AND_TRICKS) { + TipsAndTricksActivity tactivity = new TipsAndTricksActivity(mapActivity); + Dialog dlg = tactivity.getDialogToShowTips(false, true); + dlg.show(); + } else { + final Intent helpIntent = new Intent(mapActivity, HelpActivity.class); + mapActivity.startActivity(helpIntent); + } } }).reg(); final OsmAndLocationProvider loc = app.getLocationProvider();