Allow users to change the length of Bluetooth discoverability to
be two minues, five minutes, an hour, or forever discoverable. This addresses the internal bug 2413429: http://b/issue?id=2413429 and external issue 6348: http://code.google.com/p/android/issues/detail?id=6348 Original Author: Chris Wren <crwen@google.com> Modifications done by: Jaikumar Ganesh<jaikumar@google.com> Change-Id: Ie12e56ac41aa01a161d263c7525b6e021d4eeb1f
This commit is contained in:
committed by
Jaikumar Ganesh
parent
8e7aff2c41
commit
1b0489cb3e
@@ -75,7 +75,11 @@ public class RequestPermissionHelperActivity extends AlertActivity implements
|
||||
if (mEnableOnly) {
|
||||
tv.setText(getString(R.string.bluetooth_ask_enablement));
|
||||
} else {
|
||||
tv.setText(getString(R.string.bluetooth_ask_enablement_and_discovery, mTimeout));
|
||||
if (mTimeout == BluetoothDiscoverableEnabler.DISCOVERABLE_TIMEOUT_NEVER) {
|
||||
tv.setText(getString(R.string.bluetooth_ask_enablement_and_lasting_discovery));
|
||||
} else {
|
||||
tv.setText(getString(R.string.bluetooth_ask_enablement_and_discovery, mTimeout));
|
||||
}
|
||||
}
|
||||
|
||||
p.mPositiveButtonText = getString(R.string.yes);
|
||||
|
Reference in New Issue
Block a user