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 @@ ...@@ -36,10 +36,16 @@
android:noHistory="true" > android:noHistory="true" >
</activity> </activity>
<service android:name=".communication.CommunicationService" > <service
android:name=".communication.CommunicationService"
android:label="@string/startpresentation_title"
android:logo="@drawable/actionbar_icon_computer" >
</service> </service>
<activity android:name=".StartPresentationActivity" > <activity
android:name=".StartPresentationActivity"
android:logo="@drawable/actionbar_icon_computer"
android:label="@string/startpresentation_title" >
</activity> </activity>
<activity <activity
android:name=".PresentationActivity" android:name=".PresentationActivity"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
android:id="@+id/imageView1" android:id="@+id/imageView1"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/libreoffice_logo" /> android:src="@drawable/libreoffice_logo" />
<ScrollView <ScrollView
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
<string name="pairing_instructions_3">Then input this PIN:</string> <string name="pairing_instructions_3">Then input this PIN:</string>
<string name="startpresentation_instruction">No presentation is currently running.</string> <string name="startpresentation_instruction">No presentation is currently running.</string>
<string name="startpresentation_button">Start Presentation</string> <string name="startpresentation_button">Start Presentation</string>
<string name="startpresentation_title">Start Presentation</string>
<string name="about">About</string> <string name="about">About</string>
<string name="about_close">Close</string> <string name="about_close">Close</string>
<string name="about_versionstring">Version: {0} (Build ID: {1})</string> <string name="about_versionstring">Version: {0} (Build ID: {1})</string>
......
...@@ -40,10 +40,11 @@ public class CommunicationService extends Service implements Runnable { ...@@ -40,10 +40,11 @@ public class CommunicationService extends Service implements Runnable {
public static String getDeviceName() { public static String getDeviceName() {
BluetoothAdapter aAdapter = BluetoothAdapter.getDefaultAdapter(); BluetoothAdapter aAdapter = BluetoothAdapter.getDefaultAdapter();
if (aAdapter != null) { if (aAdapter != null) {
return aAdapter.getName(); String aName = aAdapter.getName();
} else { if (aName != null)
return android.os.Build.MODEL; 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