-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create IgnorePointsManage, rename WorkoutListOperations to WorkoutsLi…
…stManager, move creating gpx file name to GPXWriter from WorkoutListManager
- Loading branch information
1 parent
911bbf4
commit b42585b
Showing
7 changed files
with
104 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.sylwke3100.freetrackgps; | ||
|
||
|
||
import android.content.Context; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public class IgnorePointsManager { | ||
private Context localContext; | ||
private DatabaseManager databaseHandler; | ||
private List<IgnorePointsListElement> localListIgnore; | ||
|
||
public IgnorePointsManager(Context globalContext) { | ||
localContext = globalContext; | ||
databaseHandler = new DatabaseManager(globalContext); | ||
|
||
} | ||
|
||
public ArrayList<HashMap<String, String>> getIgnorePointsPreparedList() { | ||
ArrayList<HashMap<String, String>> baseList = new ArrayList<HashMap<String, String>>(); | ||
localListIgnore = databaseHandler.getIgnorePointsList(); | ||
for (IgnorePointsListElement element : localListIgnore) { | ||
baseList.add(element.getPreparedHashMapToView()); | ||
} | ||
return baseList; | ||
} | ||
|
||
public IgnorePointsListElement getIgnorePoint(int id){ | ||
return localListIgnore.get(id); | ||
} | ||
|
||
public void deleteIgnorePoint(IgnorePointsListElement point){ | ||
databaseHandler.deleteIgnorePoint(point.latitude, point.longitude); | ||
} | ||
|
||
public boolean addIgnorePoint(double latitude,double longitude,String name){ | ||
return databaseHandler.addIgnorePoint(latitude, longitude, name); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters