From 12e280222c635e82ada0e6c0bf5e4ecc99c3653e Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 26 Feb 2012 09:31:37 +0100 Subject: [PATCH] Show current local Edition date in Download list --- .../src/net/osmand/plus/activities/DownloadIndexActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java index 7674d17a04..69000bb0a9 100644 --- a/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/DownloadIndexActivity.java @@ -1000,12 +1000,16 @@ public class DownloadIndexActivity extends OsmandExpandableListActivity { } else { if(e.getDate() != null){ if(e.getDate().equals(indexActivatedFileNames.get(sfName))){ + item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexActivatedFileNames.get(sfName)); item.setTextColor(getResources().getColor(R.color.act_index_uptodate)); //GREEN } else if (e.getDate().equals(indexFileNames.get(sfName))) { + item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexFileNames.get(sfName)); item.setTextColor(getResources().getColor(R.color.deact_index_uptodate)); //DARK_GREEN } else if (indexActivatedFileNames.containsKey(sfName)) { + item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexActivatedFileNames.get(sfName)); item.setTextColor(getResources().getColor(R.color.act_index_updateable)); //LIGHT_BLUE } else { + item.setText(item.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : " + indexFileNames.get(sfName)); item.setTextColor(getResources().getColor(R.color.deact_index_updateable)); //DARK_BLUE } } else {