Merge "Bluetooth: do not dimiss fragment when Activity.finish() is called" into oc-mr1-dev

am: bf66bf30b1

Change-Id: Id5f413c21eb39e540d2417f9c19b7553f57d6b6a
This commit is contained in:
Jack He
2017-08-31 19:25:33 +00:00
committed by android-build-merger

View File

@@ -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();
} }
} }