Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ed1fff8147
1 changed files with 4 additions and 0 deletions
|
@ -32,12 +32,14 @@ public class UpdatesIndexFragment extends SherlockListFragment {
|
||||||
private OsmandRegions osmandRegions;
|
private OsmandRegions osmandRegions;
|
||||||
private java.text.DateFormat format;
|
private java.text.DateFormat format;
|
||||||
private UpdateIndexAdapter listAdapter;
|
private UpdateIndexAdapter listAdapter;
|
||||||
|
private int updateColor;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
format = getMyApplication().getResourceManager().getDateFormat();
|
format = getMyApplication().getResourceManager().getDateFormat();
|
||||||
|
updateColor = getResources().getColor(R.color.color_update);
|
||||||
osmandRegions = getMyApplication().getResourceManager().getOsmandRegions();
|
osmandRegions = getMyApplication().getResourceManager().getOsmandRegions();
|
||||||
listAdapter = new UpdateIndexAdapter(getDownloadActivity(), R.layout.download_index_list_item, DownloadActivity.downloadListIndexThread.getItemsToUpdate());
|
listAdapter = new UpdateIndexAdapter(getDownloadActivity(), R.layout.download_index_list_item, DownloadActivity.downloadListIndexThread.getItemsToUpdate());
|
||||||
listAdapter.sort(new Comparator<IndexItem>() {
|
listAdapter.sort(new Comparator<IndexItem>() {
|
||||||
|
@ -228,10 +230,12 @@ public class UpdatesIndexFragment extends SherlockListFragment {
|
||||||
} else if (indexActivatedFileNames.containsKey(sfName)) {
|
} else if (indexActivatedFileNames.containsKey(sfName)) {
|
||||||
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
|
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
|
||||||
+ indexActivatedFileNames.get(sfName));
|
+ indexActivatedFileNames.get(sfName));
|
||||||
|
name.setTextColor(updateColor); // LIGHT_BLUE
|
||||||
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
|
name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);
|
||||||
} else {
|
} else {
|
||||||
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
|
name.setText(name.getText() + "\n" + getResources().getString(R.string.local_index_installed) + " : "
|
||||||
+ indexFileNames.get(sfName));
|
+ indexFileNames.get(sfName));
|
||||||
|
name.setTextColor(updateColor); // LIGHT_BLUE
|
||||||
name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
|
name.setTypeface(Typeface.DEFAULT, Typeface.ITALIC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue