Fix a crash when an app requests Bluetooth to be discoverable
am: ebbfce0bf1
Change-Id: I3fcdf1abcf7ce42b7f95dc9ca34aad6dac03daff
This commit is contained in:
@@ -180,8 +180,8 @@ public class RequestPermissionActivity extends Activity implements
|
|||||||
builder.setMessage(message);
|
builder.setMessage(message);
|
||||||
} else {
|
} else {
|
||||||
CharSequence message = mAppLabel != null
|
CharSequence message = mAppLabel != null
|
||||||
? getString(R.string.bluetooth_ask_discovery, mAppLabel)
|
? getString(R.string.bluetooth_ask_discovery, mAppLabel, mTimeout)
|
||||||
: getString(R.string.bluetooth_ask_discovery_no_name);
|
: getString(R.string.bluetooth_ask_discovery_no_name, mTimeout);
|
||||||
builder.setMessage(message);
|
builder.setMessage(message);
|
||||||
}
|
}
|
||||||
builder.setPositiveButton(getString(R.string.allow), this);
|
builder.setPositiveButton(getString(R.string.allow), this);
|
||||||
|
Reference in New Issue
Block a user