summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/RequestPermissionActivity.java
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-06-11 17:04:14 -0700
committerJake Hamby <jhamby@google.com>2012-11-20 18:21:44 -0800
commit95c1003f1c6ea957065fa752d89c9f64b599461c (patch)
tree323e9a1ae4da1fc64bb7eaafe8173f45fee4f41a /src/com/android/settings/bluetooth/RequestPermissionActivity.java
parente9f89cfbf5309453e8efc2826815592660e9e1c2 (diff)
downloadpackages_apps_settings-95c1003f1c6ea957065fa752d89c9f64b599461c.zip
packages_apps_settings-95c1003f1c6ea957065fa752d89c9f64b599461c.tar.gz
packages_apps_settings-95c1003f1c6ea957065fa752d89c9f64b599461c.tar.bz2
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
Diffstat (limited to 'src/com/android/settings/bluetooth/RequestPermissionActivity.java')
-rw-r--r--src/com/android/settings/bluetooth/RequestPermissionActivity.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/settings/bluetooth/RequestPermissionActivity.java b/src/com/android/settings/bluetooth/RequestPermissionActivity.java
index 08c10fb..9f266a5 100644
--- a/src/com/android/settings/bluetooth/RequestPermissionActivity.java
+++ b/src/com/android/settings/bluetooth/RequestPermissionActivity.java
@@ -149,8 +149,6 @@ public class RequestPermissionActivity extends Activity implements
private void createDialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
- builder.setIcon(android.R.drawable.ic_dialog_info);
- builder.setTitle(getString(R.string.bluetooth_permission_request));
if (mNeededToEnableBluetooth) {
// RequestPermissionHelperActivity has gotten confirmation from user
@@ -167,8 +165,8 @@ public class RequestPermissionActivity extends Activity implements
builder.setMessage(
getString(R.string.bluetooth_ask_discovery, mTimeout));
}
- builder.setPositiveButton(getString(R.string.yes), this);
- builder.setNegativeButton(getString(R.string.no), this);
+ builder.setPositiveButton(getString(R.string.allow), this);
+ builder.setNegativeButton(getString(R.string.deny), this);
}
mDialog = builder.create();