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:
jhtop.kim
2011-07-17 14:32:40 +09:00
committed by Jake Hamby
parent 5ab6b6b004
commit 01525c9a05

View File

@@ -156,7 +156,8 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
mManager.setForegroundActivity(getActivity());
mCachedDevice.registerCallback(this);
if(mCachedDevice.getBondState() == BluetoothDevice.BOND_NONE)
finish();
refresh();
EditText et = mDeviceNamePref.getEditText();
if (et != null) {