[PATCH] Fixed bug in Gpx Import
Venkatesh Shukla IIT BHU
venkatesh.shukla.eee11 at iitbhu.ac.in
Sat Mar 15 08:21:12 PDT 2014
A mistake in code caused the app to force close in the GPX parser.
It works now
Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11 at iitbhu.ac.in>
---
src/org/subsurface/PickGpx.java | 6 +++---
src/org/subsurface/PickLocationGpx.java | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/org/subsurface/PickGpx.java
b/src/org/subsurface/PickGpx.java
index 2f28ebb..58b236b 100644
--- a/src/org/subsurface/PickGpx.java
+++ b/src/org/subsurface/PickGpx.java
@@ -33,7 +33,7 @@ public class PickGpx extends SherlockListActivity
implements OnItemClickListener
private File sd_card;
private GpxListAdapter gla;
private static final int pick_gpxlocation_reqcode = 997;
- private static final String GPX_DIVE_LOG = "gpxdivelog";
+ private static final String GPX_DIVE_LOGS = "gpxdivelogs";
private static final String GPX_FILE_PATH = "gpxfilepath";
@Override
@@ -141,10 +141,10 @@ public class PickGpx extends SherlockListActivity
implements OnItemClickListener
Bundle rec_bundle = data.getExtras();
switch(requestcode) {
case pick_gpxlocation_reqcode:
- ArrayList<DiveLocationLog> gpxdivelogs = (ArrayList<DiveLocationLog>)
rec_bundle.get(GPX_DIVE_LOG);
+ ArrayList<DiveLocationLog> gpxdivelogs = (ArrayList<DiveLocationLog>)
rec_bundle.get(GPX_DIVE_LOGS);
Intent resultIntent = new Intent();
Bundle diveBundle = new Bundle();
- diveBundle.putParcelableArrayList(GPX_DIVE_LOG, gpxdivelogs);
+ diveBundle.putParcelableArrayList(GPX_DIVE_LOGS, gpxdivelogs);
resultIntent.putExtras(diveBundle);
setResult(Activity.RESULT_OK, resultIntent);
finish();
diff --git a/src/org/subsurface/PickLocationGpx.java
b/src/org/subsurface/PickLocationGpx.java
index b87c452..87aeec5 100644
--- a/src/org/subsurface/PickLocationGpx.java
+++ b/src/org/subsurface/PickLocationGpx.java
@@ -38,7 +38,7 @@ public class PickLocationGpx extends SherlockListActivity
implements OnItemClick
private ListView listview;
private ArrayList<DiveLocationLog> allgpxlogs;
private Intent resultIntent;
- private static final String GPX_DIVE_LOG = "gpxdivelog";
+ private static final String GPX_DIVE_LOGS = "gpxdivelogs";
private static final String GPX_FILE_PATH = "gpxfilepath";
private static final String TAG = "PickLocationGpx";
@@ -79,7 +79,7 @@ public class PickLocationGpx extends SherlockListActivity
implements OnItemClick
return true;
case R.id.gpxmenu_send:
Bundle diveBundle = new Bundle();
- diveBundle.putParcelableArrayList(GPX_DIVE_LOG,
gpxDla.getSelectedDives());
+ diveBundle.putParcelableArrayList(GPX_DIVE_LOGS,
gpxDla.getSelectedDives());
resultIntent.putExtras(diveBundle);
setResult(Activity.RESULT_OK, resultIntent);
finish();
--
1.7.9.5
*Venkatesh Shukla B. Tech ( Electrical Engineering )III YearIndian
Institute of TechnologyBanaras Hindu UniversityPh No. +91 8960 579 122*
*Email: venkatesh.shukla.eee11 at iitbhu.ac.in
<venkatesh.shukla.eee11 at iitbhu.ac.in>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140315/c2006985/attachment.html>
More information about the subsurface
mailing list