Small changes

This commit is contained in:
Victor Shcherb 2015-02-05 00:41:44 +01:00
parent 799ffbf68c
commit fd3ff574a5
4 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -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();
}

View file

@ -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);