Merge "Fix phishing attacks over Bluetooth due to unclear warning message"
This commit is contained in:
committed by
Android (Google) Code Review
commit
852a19b7a6
@@ -99,9 +99,9 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
||||
if (mRequestType == BluetoothDevice.REQUEST_TYPE_PROFILE_CONNECTION) {
|
||||
showDialog(getString(R.string.bluetooth_connection_permission_request), mRequestType);
|
||||
} else if (mRequestType == BluetoothDevice.REQUEST_TYPE_PHONEBOOK_ACCESS) {
|
||||
showDialog(getString(R.string.bluetooth_phonebook_request), mRequestType);
|
||||
showDialog(getString(R.string.bluetooth_phonebook_access_dialog_title), mRequestType);
|
||||
} else if (mRequestType == BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS) {
|
||||
showDialog(getString(R.string.bluetooth_map_request), mRequestType);
|
||||
showDialog(getString(R.string.bluetooth_message_access_dialog_title), mRequestType);
|
||||
} else if (mRequestType == BluetoothDevice.REQUEST_TYPE_SIM_ACCESS) {
|
||||
showDialog(getString(R.string.bluetooth_sap_request), mRequestType);
|
||||
}
|
||||
@@ -136,9 +136,9 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
||||
p.mView = createSapDialogView();
|
||||
break;
|
||||
}
|
||||
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;
|
||||
mOkButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE);
|
||||
setupAlert();
|
||||
@@ -168,7 +168,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
||||
String mRemoteName = Utils.createRemoteName(this, mDevice);
|
||||
mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null);
|
||||
messageView = (TextView)mView.findViewById(R.id.message);
|
||||
messageView.setText(getString(R.string.bluetooth_pb_acceptance_dialog_text,
|
||||
messageView.setText(getString(R.string.bluetooth_phonebook_access_dialog_content,
|
||||
mRemoteName, mRemoteName));
|
||||
return mView;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
||||
String mRemoteName = Utils.createRemoteName(this, mDevice);
|
||||
mView = getLayoutInflater().inflate(R.layout.bluetooth_access, null);
|
||||
messageView = (TextView)mView.findViewById(R.id.message);
|
||||
messageView.setText(getString(R.string.bluetooth_map_acceptance_dialog_text,
|
||||
messageView.setText(getString(R.string.bluetooth_message_access_dialog_content,
|
||||
mRemoteName, mRemoteName));
|
||||
return mView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user