Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6108d6c2 authored by Jack He's avatar Jack He
Browse files

Bluetooth: do not dimiss fragment when Activity.finish() is called

* When Activity.finish() is called, it's associtated fragments are all
  dismissed automatically
* Cached used fragments are dimissed in onCreate() before new ones are
  created

Bug: 62230203
Test: Pair with Bluetooth device, Settings unit tests
Change-Id: Ieca88ba0660c5407f0d88d572d06a722c642ac39
parent f5d7db2c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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();
        }
    }