Close scan screen when pairing and remove device when unpairing.

Close the scan screen after successful pairing, and remove a
device from the list of paired devices after unpairing.

As part of the fix, BluetoothSettings was refactored into a parent
class, DeviceListPreferenceFragment, and three subclasses for each
variant type: BluetoothSettings, BluetoothFindNearby, and
DevicePickerFragment, replacing the checks against mScreenType with
custom logic in the child classes.

Bug: 3325848
Change-Id: If64fddc3ba5b4f1136451491c7d5a1139b696e47
This commit is contained in:
Jake Hamby
2011-01-12 15:06:28 -08:00
parent 11a17eead7
commit 2748fc24cf
8 changed files with 496 additions and 391 deletions

View File

@@ -21,7 +21,7 @@
<fragment
android:id="@+id/bluetooth_device_picker_fragment"
android:name="com.android.settings.bluetooth.BluetoothSettings"
android:name="com.android.settings.bluetooth.DevicePickerFragment"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1" />