Merge "Bluetooth: do not dimiss fragment when Activity.finish() is called" into oc-mr1-dev am: bf66bf30b1
am: 4dddaf18e1
Change-Id: I249a0a3fc1a8c030041cfca8b3dbd49bc2badf07
This commit is contained in:
@@ -108,12 +108,6 @@ public class BluetoothPairingDialog extends Activity {
|
|||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
void dismiss() {
|
void dismiss() {
|
||||||
if (!isFinishing()) {
|
if (!isFinishing()) {
|
||||||
BluetoothPairingDialogFragment bluetoothFragment =
|
|
||||||
(BluetoothPairingDialogFragment) getFragmentManager()
|
|
||||||
.findFragmentByTag(FRAGMENT_TAG);
|
|
||||||
if (bluetoothFragment != null) {
|
|
||||||
bluetoothFragment.dismiss();
|
|
||||||
}
|
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user