diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 843efd562..80ee36ac1 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -4,6 +4,8 @@
+
+
0) {
+ contactLookup.moveToNext();
+ name = contactLookup.getString(contactLookup.getColumnIndex(ContactsContract.Data.DISPLAY_NAME));
+ }
+ } finally {
+ if (contactLookup != null) {
+ contactLookup.close();
+ }
+ }
+
+ return name;
+ }
+
+
private class BtSocketAcceptThread extends Thread {
private final BluetoothServerSocket mmServerSocket;
diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/PhoneCallReceiver.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/PhoneCallReceiver.java
index 769ae5ae7..3244e801d 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/PhoneCallReceiver.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/PhoneCallReceiver.java
@@ -26,4 +26,5 @@ public class PhoneCallReceiver extends BroadcastReceiver {
context.startService(startIntent);
}
}
+
}