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

Commit 00d82f05 authored by Maurice Lam's avatar Maurice Lam
Browse files

[WifiDialog] Suppress activity transition

Suppress the activity transition when finishing so that only the
dialog's animation will be played.

Bug: 25796672
Change-Id: I0c472313608aa46f780ce2fdb79224c0ad3a4dad
parent 44b1e0ed
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -60,6 +60,12 @@ public class WifiDialogActivity extends Activity implements WifiDialog.WifiDialo
        dialog.setOnDismissListener(this);
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(0, 0);
    }

    @Override
    public void onForget(WifiDialog dialog) {
        final WifiManager wifiManager = getSystemService(WifiManager.class);