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

This commit is contained in:
TreeHugger Robot
2017-08-31 19:16:50 +00:00
committed by Android (Google) Code Review

View File

@@ -108,12 +108,6 @@ public class BluetoothPairingDialog extends Activity {
@VisibleForTesting
void dismiss() {
if (!isFinishing()) {
BluetoothPairingDialogFragment bluetoothFragment =
(BluetoothPairingDialogFragment) getFragmentManager()
.findFragmentByTag(FRAGMENT_TAG);
if (bluetoothFragment != null) {
bluetoothFragment.dismiss();
}
finish();
}
}