diff --git a/android/sdremote/AndroidManifest.xml b/android/sdremote/AndroidManifest.xml index 4a5811fccf67..bd38fab2bbb5 100644 --- a/android/sdremote/AndroidManifest.xml +++ b/android/sdremote/AndroidManifest.xml @@ -36,10 +36,16 @@ android:noHistory="true" > - + - + Then input this PIN: No presentation is currently running. Start Presentation + Start Presentation About Close Version: {0} (Build ID: {1}) diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java index 511f07f335b1..aa1cd9d01d9b 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/CommunicationService.java @@ -40,10 +40,11 @@ public class CommunicationService extends Service implements Runnable { public static String getDeviceName() { BluetoothAdapter aAdapter = BluetoothAdapter.getDefaultAdapter(); if (aAdapter != null) { - return aAdapter.getName(); - } else { - return android.os.Build.MODEL; + String aName = aAdapter.getName(); + if (aName != null) + return aName; } + return android.os.Build.MODEL; } /**