SetupWizard: Use fade in/out animation for emergency dialer

Change-Id: I43a1d4b0a257e2639e5b461a541001815736a32d
This commit is contained in:
cretin45 2015-02-06 15:04:10 -08:00 committed by Ed Carrigan
parent 6f1d19f572
commit 5d3bce424c

View File

@ -16,6 +16,7 @@
package com.cyanogenmod.setupwizard.setup;
import android.app.ActivityOptions;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;
@ -67,7 +68,11 @@ public class WelcomePage extends SetupPage {
Intent intent = new Intent(ACTION_EMERGENCY_DIAL);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
mContext.startActivity(intent);
ActivityOptions options =
ActivityOptions.makeCustomAnimation(mContext,
android.R.anim.fade_in,
android.R.anim.fade_out);
mContext.startActivity(intent, options.toBundle());
return true;
}