Fix Bluetooth enable dialog to match Android style guide.
When an app requests to enable Bluetooth and/or Bluetooth discovery, we show a dialog for user confirmation. Remove the dialog title, update the message text and button labels to be more descriptive, and use the standard dialog layout instead of a custom layout. Also fixes the button layout on the Bluetooth permission test app so that the "Discoverable" button doesn't wrap to two lines. Bug: 6001468 Change-Id: I731e2f31b4c822395fc3f83584a092550d9ae7d3
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
<!-- Strings for Dialog create button -->
|
||||
<string name="create">Create</string>
|
||||
|
||||
<!-- Strings for Dialog allow button -->
|
||||
<string name="allow">Allow</string>
|
||||
|
||||
<!-- Strings for Dialog deny button -->
|
||||
<string name="deny">Deny</string>
|
||||
|
||||
<!-- Device Info --> <skip />
|
||||
<!-- Device Info screen. Used for a status item's value when the proper value is not known -->
|
||||
<string name="device_info_default">Unknown</string>
|
||||
@@ -216,8 +222,6 @@
|
||||
|
||||
<!-- Used as setting title (for checkbox) on second screen after selecting Bluetooth settings -->
|
||||
<string name="bluetooth">Bluetooth</string>
|
||||
<!-- Bluetooth settings screen, check box label when the Bluetooth device can be seen by others -->
|
||||
<string name="bluetooth_visibility">Discoverable</string>
|
||||
<!-- Bluetooth settings screen, summary after selecting Discoverable check box [CHAR LIMIT=50] -->
|
||||
<string name="bluetooth_is_discoverable">Visible to all nearby Bluetooth devices (<xliff:g id="discoverable_time_period">%1$s</xliff:g>)</string>
|
||||
<!-- Bluetooth settings screen, summary when Discoverable duration is set to "forever" [CHAR LIMIT=50] -->
|
||||
@@ -226,12 +230,8 @@
|
||||
<string name="bluetooth_not_visible_to_other_devices">Not visible to other Bluetooth devices</string>
|
||||
<!-- Bluetooth settings screen, summary text when not discoverable with paired devices [CHAR LIMIT=50] -->
|
||||
<string name="bluetooth_only_visible_to_paired_devices">Only visible to paired devices</string>
|
||||
<!-- Bluetooth settings screen, Discoverable checkbox summary text -->
|
||||
<string name="bluetooth_not_discoverable">Make device discoverable</string>
|
||||
<!-- Bluetooth settings screen, option name to pick discoverability timeout duration (a list dialog comes up) -->
|
||||
<string name="bluetooth_visibility_timeout">Visibility timeout</string>
|
||||
<!-- Bluetooth settings screen, Discoverable timout list dialog summary text -->
|
||||
<string name="bluetooth_visibility_timeout_summary">Set how long device will be discoverable</string>
|
||||
<!-- Bluetooth settings screen, check box label whether or not to allow
|
||||
bluetooth voice dialing when lock screen is up-->
|
||||
<string name="bluetooth_lock_voice_dialing">Lock voice dialing</string>
|
||||
@@ -303,29 +303,26 @@
|
||||
<!-- Strings for BluetoothDevicePicker -->
|
||||
<string name="device_picker">Bluetooth device chooser</string>
|
||||
|
||||
<!-- Strings for dialog title when asking to the user whether to allow an app to enable discovery mode -->
|
||||
<string name="bluetooth_permission_request">"Bluetooth permission request"</string>
|
||||
|
||||
<!-- Strings for asking to the user whether to allow an app to enable bluetooth -->
|
||||
<string name="bluetooth_ask_enablement">"An app wants to turn on Bluetooth. Allow?"</string>
|
||||
<string name="bluetooth_ask_enablement">An app wants to turn on Bluetooth.</string>
|
||||
|
||||
<!-- Strings for asking to the user whether to allow an app to enable discovery mode -->
|
||||
<string name="bluetooth_ask_discovery" product="tablet">"An app on your tablet wants to make your tablet discoverable by other Bluetooth devices for <xliff:g id="timeout">%1$d</xliff:g> seconds. Allow?"</string>
|
||||
<string name="bluetooth_ask_discovery" product="tablet">An app wants to make your tablet visible to other Bluetooth devices for <xliff:g id="timeout">%1$d</xliff:g> seconds.</string>
|
||||
<!-- Strings for asking to the user whether to allow an app to enable discovery mode -->
|
||||
<string name="bluetooth_ask_discovery" product="default">"An app on your phone wants to make your phone discoverable by other Bluetooth devices for <xliff:g id="timeout">%1$d</xliff:g> seconds. Allow?"</string>
|
||||
<string name="bluetooth_ask_discovery" product="default">An app wants to make your phone visible to other Bluetooth devices for <xliff:g id="timeout">%1$d</xliff:g> seconds.</string>
|
||||
|
||||
<!-- Strings for asking to the user whether to allow an app to enable lasting discovery mode -->
|
||||
<string name="bluetooth_ask_lasting_discovery" product="tablet">"An app on your tablet wants to make your tablet \u201calways discoverable\u201d by other Bluetooth devices. Allow?"</string>
|
||||
<string name="bluetooth_ask_lasting_discovery" product="default">"An app on your phone wants to make your phone \u201calways discoverable\u201d by other Bluetooth devices. Allow?"</string>
|
||||
<string name="bluetooth_ask_lasting_discovery" product="tablet">An app wants to make your tablet visible to other Bluetooth devices. You can change this later in Bluetooth settings.</string>
|
||||
<string name="bluetooth_ask_lasting_discovery" product="default">An app wants to make your phone visible to other Bluetooth devices. You can change this later in Bluetooth settings.</string>
|
||||
|
||||
<!-- Strings for asking to the user whether to allow an app to enable bluetooth and discovery mode -->
|
||||
<string name="bluetooth_ask_enablement_and_discovery" product="tablet">"An app on your tablet wants to turn on Bluetooth and make your tablet discoverable by other devices for <xliff:g id="timeout">%1$d</xliff:g> seconds. Allow?"</string>
|
||||
<string name="bluetooth_ask_enablement_and_discovery" product="tablet">An app wants to turn on Bluetooth and make your tablet visible to other devices for <xliff:g id="timeout">%1$d</xliff:g> seconds.</string>
|
||||
<!-- Strings for asking to the user whether to allow an app to enable bluetooth and discovery mode -->
|
||||
<string name="bluetooth_ask_enablement_and_discovery" product="default">"An app on your phone wants to turn on Bluetooth and make your phone discoverable by other devices for <xliff:g id="timeout">%1$d</xliff:g> seconds. Allow?"</string>
|
||||
<string name="bluetooth_ask_enablement_and_discovery" product="default">An app wants to turn on Bluetooth and make your phone visible to other devices for <xliff:g id="timeout">%1$d</xliff:g> seconds.</string>
|
||||
|
||||
<!-- Strings for asking to the user whether to allow an app to enable bluetooth and discovery mode -->
|
||||
<string name="bluetooth_ask_enablement_and_lasting_discovery" product="tablet">"An app on your tablet wants to turn on Bluetooth and make your tablet discoverable by other devices. Allow?"</string>
|
||||
<string name="bluetooth_ask_enablement_and_lasting_discovery" product="default">"An app on your phone wants to turn on Bluetooth and make your phone discoverable by other devices. Allow?"</string>
|
||||
<string name="bluetooth_ask_enablement_and_lasting_discovery" product="tablet">An app wants to turn on Bluetooth and make your tablet visible to other devices. You can change this later in Bluetooth settings.</string>
|
||||
<string name="bluetooth_ask_enablement_and_lasting_discovery" product="default">An app wants to turn on Bluetooth and make your phone visible to other devices. You can change this later in Bluetooth settings.</string>
|
||||
|
||||
<!-- Strings for msg to display to user while bluetooth is turning on [CHAR LIMIT=60] -->
|
||||
<string name="bluetooth_turning_on">"Turning Bluetooth on\u2026"</string>
|
||||
|
Reference in New Issue
Block a user