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

Commit 5d3bce42 authored by cretin45's avatar cretin45 Committed by Ed Carrigan
Browse files

SetupWizard: Use fade in/out animation for emergency dialer

Change-Id: I43a1d4b0a257e2639e5b461a541001815736a32d
parent 6f1d19f5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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;
    }