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:
@@ -41,13 +41,14 @@ import com.android.settings.R;
|
||||
/**
|
||||
* Dialog fragment for setting the discoverability timeout.
|
||||
*/
|
||||
final class BluetoothVisibilityTimeoutFragment extends DialogFragment
|
||||
public final class BluetoothVisibilityTimeoutFragment extends DialogFragment
|
||||
implements DialogInterface.OnClickListener {
|
||||
|
||||
private final BluetoothDiscoverableEnabler mDiscoverableEnabler;
|
||||
|
||||
public BluetoothVisibilityTimeoutFragment(BluetoothDiscoverableEnabler enabler) {
|
||||
mDiscoverableEnabler = enabler;
|
||||
public BluetoothVisibilityTimeoutFragment() {
|
||||
mDiscoverableEnabler = LocalBluetoothManager.getInstance(getActivity())
|
||||
.getDiscoverableEnabler();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user