diff options
author | cretin45 <cretin45@gmail.com> | 2015-02-06 15:04:10 -0800 |
---|---|---|
committer | Ed Carrigan <cretin45@gmail.com> | 2015-02-06 23:05:12 +0000 |
commit | 5d3bce424c00ddc6fd1044d5e1c563a0fc9f80e0 (patch) | |
tree | 66c961e538de56abb15480db6cbe05187cbe03f1 /src/com/cyanogenmod/setupwizard/setup/WelcomePage.java | |
parent | 6f1d19f572c1196eef7f2eff51ccc2a7387e04d2 (diff) | |
download | packages_apps_SetupWizard-5d3bce424c00ddc6fd1044d5e1c563a0fc9f80e0.zip packages_apps_SetupWizard-5d3bce424c00ddc6fd1044d5e1c563a0fc9f80e0.tar.gz packages_apps_SetupWizard-5d3bce424c00ddc6fd1044d5e1c563a0fc9f80e0.tar.bz2 |
SetupWizard: Use fade in/out animation for emergency dialer
Change-Id: I43a1d4b0a257e2639e5b461a541001815736a32d
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/WelcomePage.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/WelcomePage.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java b/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java index be04d9f..66bff4d 100644 --- a/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java +++ b/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java @@ -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; } |