diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/settings/bluetooth/RequestPermissionActivity.java | 6 | ||||
-rw-r--r-- | src/com/android/settings/bluetooth/RequestPermissionHelperActivity.java | 16 |
2 files changed, 7 insertions, 15 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(); diff --git a/src/com/android/settings/bluetooth/RequestPermissionHelperActivity.java b/src/com/android/settings/bluetooth/RequestPermissionHelperActivity.java index 5c4b828..f108513 100644 --- a/src/com/android/settings/bluetooth/RequestPermissionHelperActivity.java +++ b/src/com/android/settings/bluetooth/RequestPermissionHelperActivity.java @@ -72,26 +72,20 @@ public class RequestPermissionHelperActivity extends AlertActivity implements void createDialog() { final AlertController.AlertParams p = mAlertParams; - p.mIconId = android.R.drawable.ic_dialog_info; - p.mTitle = getString(R.string.bluetooth_permission_request); - - View view = getLayoutInflater().inflate(R.layout.bluetooth_discoverable, null); - p.mView = view; - TextView tv = (TextView) view.findViewById(R.id.message); if (mEnableOnly) { - tv.setText(getString(R.string.bluetooth_ask_enablement)); + p.mMessage = getString(R.string.bluetooth_ask_enablement); } else { if (mTimeout == BluetoothDiscoverableEnabler.DISCOVERABLE_TIMEOUT_NEVER) { - tv.setText(getString(R.string.bluetooth_ask_enablement_and_lasting_discovery)); + p.mMessage = getString(R.string.bluetooth_ask_enablement_and_lasting_discovery); } else { - tv.setText(getString(R.string.bluetooth_ask_enablement_and_discovery, mTimeout)); + p.mMessage = getString(R.string.bluetooth_ask_enablement_and_discovery, mTimeout); } } - p.mPositiveButtonText = getString(R.string.yes); + p.mPositiveButtonText = getString(R.string.allow); p.mPositiveButtonListener = this; - p.mNegativeButtonText = getString(R.string.no); + p.mNegativeButtonText = getString(R.string.deny); p.mNegativeButtonListener = this; setupAlert(); |