Changes for public API of Bluetooth Discoverability.
1. Apps can ask for any time between 0 and 3600 secs 2. O implies always discoverable 3. Any invalid values will default to the defaul - 120 secs. Change-Id: Ife1bc803587ba975bb103a5ba7629d4a382cd705
This commit is contained in:
@@ -56,8 +56,6 @@ public class BluetoothDiscoverableEnabler implements Preference.OnPreferenceChan
|
||||
private static final String VALUE_DISCOVERABLE_TIMEOUT_ONE_HOUR = "onehour";
|
||||
private static final String VALUE_DISCOVERABLE_TIMEOUT_NEVER = "never";
|
||||
|
||||
// no need for this timeout anymore since we have the listPreference default value
|
||||
// leaving now temporary until requestpermissionactivity is modified..
|
||||
static final int DEFAULT_DISCOVERABLE_TIMEOUT = DISCOVERABLE_TIMEOUT_TWO_MINUTES;
|
||||
|
||||
private final Context mContext;
|
||||
|
Reference in New Issue
Block a user