Changes event handling phases for DeviceListPreferenceFragment.

Bug: 31273140
Test: Manual inspection.

Change-Id: If4622b8d367813eb86a54a45f2e8fa4a55ca38b1
This commit is contained in:
Jaewoong Jung
2016-10-13 11:08:22 -07:00
parent ab50807d1e
commit e8d5c8fda1
3 changed files with 15 additions and 15 deletions

View File

@@ -180,13 +180,13 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
}
@Override
public void onResume() {
// resume BluetoothEnabler before calling super.onResume() so we don't get
public void onStart() {
// resume BluetoothEnabler before calling super.onStart() so we don't get
// any onDeviceAdded() callbacks before setting up view in updateContent()
if (mBluetoothEnabler != null) {
mBluetoothEnabler.resume(getActivity());
}
super.onResume();
super.onStart();
mInitiateDiscoverable = true;
@@ -206,8 +206,8 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
}
@Override
public void onPause() {
super.onPause();
public void onStop() {
super.onStop();
if (mBluetoothEnabler != null) {
mBluetoothEnabler.pause();
}