diff --git a/OsmAnd/res/drawable-hdpi/ic_overflow_menu_dark.png b/OsmAnd/res/drawable-hdpi/ic_overflow_menu_dark.png index 64b766683e..5365202e5a 100644 Binary files a/OsmAnd/res/drawable-hdpi/ic_overflow_menu_dark.png and b/OsmAnd/res/drawable-hdpi/ic_overflow_menu_dark.png differ diff --git a/OsmAnd/res/drawable-hdpi/ic_overflow_menu_light.png b/OsmAnd/res/drawable-hdpi/ic_overflow_menu_light.png index 5365202e5a..64b766683e 100644 Binary files a/OsmAnd/res/drawable-hdpi/ic_overflow_menu_light.png and b/OsmAnd/res/drawable-hdpi/ic_overflow_menu_light.png differ diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashMapFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashMapFragment.java index 7a6c6210bd..8e62446d84 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashMapFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashMapFragment.java @@ -29,6 +29,8 @@ import android.widget.TextView; */ public class DashMapFragment extends DashBaseFragment implements IMapDownloaderCallback { + private static final int CARD_INTERVAL_UPDATE = 60*1000;//4*60*60*1000; + public static final String TAG = "DASH_MAP_FRAGMENT"; private Paint paintBmp; @@ -136,7 +138,7 @@ public class DashMapFragment extends DashBaseFragment implements IMapDownloaderC MainMenuActivity mainMenuActivity = ((MainMenuActivity) getActivity()); if (mainMenuActivity != null) { if (System.currentTimeMillis() - getMyApplication().getSettings().LAST_UPDATES_CARD_REFRESH.get() - > 12*60*60*1000 ) { + > CARD_INTERVAL_UPDATE && getMyApplication().getSettings().isInternetConnectionAvailable(true)) { getMyApplication().getSettings().LAST_UPDATES_CARD_REFRESH.set(System.currentTimeMillis()); mainMenuActivity.updateDownloads(); } diff --git a/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java b/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java index 80a96ea24a..4eed3fbc24 100644 --- a/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/UpdatesIndexFragment.java @@ -109,7 +109,7 @@ public class UpdatesIndexFragment extends ListFragment { MenuItem item = menu.add(0, DownloadIndexFragment.RELOAD_ID, 0, R.string.update_downlod_list); item.setIcon(R.drawable.ic_action_refresh_dark); MenuItemCompat.setShowAsAction(item, MenuItemCompat.SHOW_AS_ACTION_ALWAYS); - SubMenu s = menu.addSubMenu(0, DownloadIndexFragment.MORE_ID, 0, -1); + SubMenu s = menu.addSubMenu(0, DownloadIndexFragment.MORE_ID, 0, ""); s.setIcon(isLightActionBar() ? R.drawable.ic_overflow_menu_light : R.drawable.ic_overflow_menu_dark); s.add(0, DownloadIndexFragment.SELECT_ALL_ID, 0, R.string.select_all);