Bluetooth : fix for Settings crashes while rotating the screen.
- Add some codes preventing setting crash when rotating the screen when the Rename device or Visibility timeout dialogs are visible. Change-Id: I5e142a5d869a0d5c91c6ace80093d09178d79558 Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
This commit is contained in:
10
src/com/android/settings/bluetooth/LocalBluetoothManager.java
Executable file → Normal file
10
src/com/android/settings/bluetooth/LocalBluetoothManager.java
Executable file → Normal file
@@ -36,6 +36,8 @@ public final class LocalBluetoothManager {
|
||||
/** If a BT-related activity is in the foreground, this will be it. */
|
||||
private Context mForegroundActivity;
|
||||
|
||||
private BluetoothDiscoverableEnabler mDiscoverableEnabler;
|
||||
|
||||
private final LocalBluetoothAdapter mLocalAdapter;
|
||||
|
||||
private final CachedBluetoothDeviceManager mCachedDeviceManager;
|
||||
@@ -60,6 +62,14 @@ public final class LocalBluetoothManager {
|
||||
return sInstance;
|
||||
}
|
||||
|
||||
public void setDiscoverableEnabler(BluetoothDiscoverableEnabler discoverableEnabler) {
|
||||
mDiscoverableEnabler = discoverableEnabler;
|
||||
}
|
||||
|
||||
public BluetoothDiscoverableEnabler getDiscoverableEnabler() {
|
||||
return mDiscoverableEnabler;
|
||||
}
|
||||
|
||||
private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) {
|
||||
mContext = context;
|
||||
mLocalAdapter = adapter;
|
||||
|
||||
Reference in New Issue
Block a user