Skip to content

Commit

Permalink
Backend exceptions should be catched
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Mar 10, 2014
1 parent 2165785 commit 67a4030
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ LOCAL_PACKAGE_NAME := UnifiedNlp
LOCAL_SDK_VERSION := current
LOCAL_PRIVILEGED_MODULE := true

LOCAL_PROGUARD_FLAG_FILES := proguard.flags

include $(BUILD_PACKAGE)

include $(call all-makefiles-under,$(LOCAL_PATH))
17 changes: 8 additions & 9 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.microg.nlp"
<manifest
package="org.microg.nlp"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk android:minSdkVersion="14" />

<uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" />
<uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

<application
android:icon="@drawable/nlp_app_icon"
android:label="@string/nlp_app_name">
<uses-library
android:name="com.android.location.provider"
android:required="false" />
<uses-library android:name="com.android.location.provider" />

<!-- Gingerbread / Ice Cream Sandwich -->
<service
Expand Down
2 changes: 1 addition & 1 deletion src/org/microg/nlp/location/BackendHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Location update() {
try {
setLastLocation(backend.update());
provider.reportLocation(lastLocation);
} catch (RemoteException e) {
} catch (Exception e) {
Log.w(TAG, e);
unbind();
}
Expand Down

0 comments on commit 67a4030

Please sign in to comment.