Skip to content

Commit

Permalink
Fixed reported crashes
Browse files Browse the repository at this point in the history
Updated Geocaching API library to latest version
  • Loading branch information
arcao committed Jun 7, 2012
1 parent 94790f5 commit e3adae9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.1.jar" sourcepath="lib/commons-lang3-3.1-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/geocaching-api-1.5.1.jar" sourcepath="lib/geocaching-api-1.5.1-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/geocaching-api-1.5.2.jar" sourcepath="lib/geocaching-api-1.5.2-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/locus-addon-publiclib-1.6.jar" sourcepath="lib/locus-addon-publiclib-1.6-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/log4j-over-slf4j-1.6.4.jar" sourcepath="lib/log4j-over-slf4j-1.6.4-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/slf4j-android-1.6.1-RC1.jar" sourcepath="lib/slf4j-android-1.6.1-RC1-sources.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.arcao.geocaching4locus"
android:versionName="1.4.1" android:versionCode="22"
android:versionName="1.4.1.1" android:versionCode="23"
android:installLocation="auto">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Expand Down
Binary file not shown.
Binary file not shown.
11 changes: 8 additions & 3 deletions src/com/arcao/geocaching4locus/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,17 @@ public class MainActivity extends Activity implements LocationListener, OnIntent
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
res = getResources();
prefs = PreferenceManager.getDefaultSharedPreferences(this);
hasCoordinates = false;

setContentView(R.layout.main_activity);

locusInstalled = true;

if (!LocusTesting.isLocusInstalled(this)) {
locusInstalled = false;
LocusTesting.showLocusMissingError(this);
return;
}

setContentView(R.layout.main_activity);

if (LocusIntents.isIntentOnPointAction(getIntent())) {
Point p = LocusIntents.handleIntentOnPointAction(getIntent());
Expand Down Expand Up @@ -109,6 +108,8 @@ public void onFailed() {}
protected void onResume() {
super.onResume();

prefs = PreferenceManager.getDefaultSharedPreferences(this);

IntentFilter filter = new IntentFilter(SearchGeocacheService.ACTION_PROGRESS_UPDATE);

filter.addAction(SearchGeocacheService.ACTION_PROGRESS_UPDATE);
Expand All @@ -119,6 +120,10 @@ protected void onResume() {

handler = new Handler();

// temporary fix for bug
if (findViewById(R.id.latitudeEditText) == null)
setContentView(R.layout.main_activity);

latitudeEditText = (EditText) findViewById(R.id.latitudeEditText);
longitudeEditText = (EditText) findViewById(R.id.logitudeEditText);
importCachesCheckBox = (CheckBox) findViewById(R.id.importCachesCheckBox);
Expand Down

0 comments on commit e3adae9

Please sign in to comment.