Move the track context menu to the main menu.

Use sharedPreferenceChangeListener to listen when
a new recording has started to update the view like the action items.
This commit is contained in:
Jimmy Shih
2012-03-29 18:02:28 -07:00
parent 246b13da4b
commit 9ff1af221b
22 changed files with 543 additions and 735 deletions
@@ -189,7 +189,7 @@ public class SearchActivity extends ListActivity {
resultMap.put(DESCRIPTION_FIELD, waypoint.getDescription());
resultMap.put(CATEGORY_FIELD, waypoint.getCategory());
// In the same place as we show time for tracks, show the track name for waypoints.
resultMap.put(TIME_FIELD, getString(R.string.track_list_track_name, trackName));
resultMap.put(TIME_FIELD, getString(R.string.search_track_location, trackName));
resultMap.put(STATS_FIELD, StringUtils.formatDateTime(this, waypoint.getLocation().getTime()));
resultMap.put(TRACK_ID_FIELD, waypoint.getTrackId());
resultMap.put(WAYPOINT_ID_FIELD, waypoint.getId());