Merge "Bluetooth: do not dimiss fragment when Activity.finish() is called" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bf66bf30b1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user