Bluetooth : fix to finish deviceprofilesettings activity when device is not bonded
- if cached device state is "BluetoothDevice.BOND_NONE" then finish activity Change-Id: I5c981e8c4800c10f1f8570668794301d5da03188 Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
This commit is contained in:
@@ -156,7 +156,8 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
|||||||
|
|
||||||
mManager.setForegroundActivity(getActivity());
|
mManager.setForegroundActivity(getActivity());
|
||||||
mCachedDevice.registerCallback(this);
|
mCachedDevice.registerCallback(this);
|
||||||
|
if(mCachedDevice.getBondState() == BluetoothDevice.BOND_NONE)
|
||||||
|
finish();
|
||||||
refresh();
|
refresh();
|
||||||
EditText et = mDeviceNamePref.getEditText();
|
EditText et = mDeviceNamePref.getEditText();
|
||||||
if (et != null) {
|
if (et != null) {
|
||||||
|
Reference in New Issue
Block a user