1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-23 16:53:04 +02:00

added an icon and title for the Bluetooth permission information dialog

This commit is contained in:
OliE
2018-02-10 11:02:06 +01:00
parent 97a75762dc
commit 0703607ceb
2 changed files with 4 additions and 1 deletions

View File

@@ -60,6 +60,8 @@ public class PermissionHelper {
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setMessage(R.string.permission_bluetooth_info)
.setTitle(R.string.permission_bluetooth_info_title)
.setIcon(R.drawable.ic_preferences_about)
.setPositiveButton(R.string.label_ok, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.dismiss();

View File

@@ -217,6 +217,7 @@
<string name="save">Save</string>
<string name="permission_not_granted">Permission not granted</string>
<string name="permission_bluetooth_info">openScale needs permission to access to coarse location to search for Bluetooth devices</string>
<string name="permission_bluetooth_info">openScale requires permission to access the coarse location to search for Bluetooth devices</string>
<string name="permission_bluetooth_info_title">Information</string>
</resources>