From 2f581670f84f5c7d9b43d8657f7d6f5ab7e5e98e Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 31 Jan 2012 14:19:38 +0000 Subject: Fixed some FindActivity stuff. --- res/layout/find.xml | 2 +- src/net/cbaines/suma/FindActivity.java | 7 +++++-- 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" /> 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"); -- cgit v1.2.3