darodriguezalv / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Persist Map Layer preference #1229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the user changes the "May Layer" preference, e.g., satellite, terrain, My 
Tracks should persists the preference next time the map view is displayed.

Known tasks:
1. Add a map_type_key in keys.xml
2. Add a MAP_TYPE_DEFAULT (integer) in PreferencesUtils.java.
3. In MyTracksMapFragment, read and set the preference in onResume.
4. In MyTracksMapFragment, store the preference in onOptionsItemSelected.
5. In MyTracksMapFragment, remove MAP_TYPE and its usages. MAP_TYPE was used to 
keep the map type when rotating screen. With map_type_key, MAP_TYPE is no 
longer needed and should be removed to avoid confusion.

Note that to display the map view with your debug key, you need to update the 
map api key, see the google map view v2 tutorial.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by jshih@google.com on 25 Jan 2013 at 8:39

GoogleCodeExporter commented 9 years ago
I'll start working on this feature.

Original comment by apoorv.n...@gmail.com on 25 Jan 2013 at 10:04

GoogleCodeExporter commented 9 years ago
1. Should we persist the preference only for the current session or the 
preference should persist across different sessions?

2. If the preference needs to be persisted across different sessions, should we 
add options in Map settings?

Original comment by apoorv.n...@gmail.com on 28 Jan 2013 at 11:10

GoogleCodeExporter commented 9 years ago
We want to persist across sessions.
No need to add to the Map settings. User can always change the map layer 
through the menu.

Original comment by jshih@google.com on 29 Jan 2013 at 12:37

GoogleCodeExporter commented 9 years ago
Completed. Submitted for Review. Issue 1234

Original comment by apoorv.n...@gmail.com on 31 Jan 2013 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by jshih@google.com on 27 Feb 2013 at 8:23