[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
This commit is contained in:
Maurice Lam
2015-12-22 15:26:12 -08:00
parent 44b1e0ed99
commit 00d82f054c

View File

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