aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/layout/find.xml2
-rw-r--r--src/net/cbaines/suma/FindActivity.java7
2 files changed, 6 insertions, 3 deletions
diff --git a/res/layout/find.xml b/res/layout/find.xml
index 62a3000..6b19c67 100644
--- a/res/layout/find.xml
+++ b/res/layout/find.xml
@@ -10,7 +10,7 @@
android:id="@+id/searchBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:inputType="text" />
+ android:inputType="textNoSuggestions" />
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
diff --git a/src/net/cbaines/suma/FindActivity.java b/src/net/cbaines/suma/FindActivity.java
index f0a16ac..154cd64 100644
--- a/src/net/cbaines/suma/FindActivity.java
+++ b/src/net/cbaines/suma/FindActivity.java
@@ -25,7 +25,6 @@ import java.util.Collections;
import java.util.Iterator;
import java.util.List;
-
import org.osmdroid.util.GeoPoint;
import android.content.Context;
@@ -278,7 +277,11 @@ public class FindActivity extends OrmLiteBaseActivity<DatabaseHelper> implements
}
// Register the listener with the Location Manager to receive location updates
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10000, 10, this);
- locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000, 10, this);
+ try {
+ locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000, 10, this);
+ } catch (Exception e) {
+ // Ignore anything that goes wrong here...
+ }
// SotonBusData.getTimetable("SN120128");