Kaydet (Commit) 58c32f1f authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

Fix about dialog image, Fix null device name.

Change-Id: I487582592d468c83030202241d67296a0a1b6aa8
üst b29ae2b9
......@@ -36,10 +36,16 @@
android:noHistory="true" >
</activity>
<service android:name=".communication.CommunicationService" >
<service
android:name=".communication.CommunicationService"
android:label="@string/startpresentation_title"
android:logo="@drawable/actionbar_icon_computer" >
</service>
<activity android:name=".StartPresentationActivity" >
<activity
android:name=".StartPresentationActivity"
android:logo="@drawable/actionbar_icon_computer"
android:label="@string/startpresentation_title" >
</activity>
<activity
android:name=".PresentationActivity"
......
......@@ -10,6 +10,7 @@
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/libreoffice_logo" />
<ScrollView
......
......@@ -33,6 +33,7 @@
<string name="pairing_instructions_3">Then input this PIN:</string>
<string name="startpresentation_instruction">No presentation is currently running.</string>
<string name="startpresentation_button">Start Presentation</string>
<string name="startpresentation_title">Start Presentation</string>
<string name="about">About</string>
<string name="about_close">Close</string>
<string name="about_versionstring">Version: {0} (Build ID: {1})</string>
......
......@@ -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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment