mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-23 08:43:15 +02:00
added an icon and title for the Bluetooth permission information dialog
This commit is contained in:
@@ -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();
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user