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

Commit 9a5b6eb4 authored by Anthony Alridge's avatar Anthony Alridge Committed by Automerger Merge Worker
Browse files

Merge "Open intent with animation for mini-resolver" into udc-dev am:...

Merge "Open intent with animation for mini-resolver" into udc-dev am: cf62ec54 am: 300d3e34 am: cfa8ce4d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23187483



Change-Id: I406d590d3ed9fa9dc0f092b41c5a7506713f443f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9208bd78 cfa8ce4d
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import static com.android.internal.app.ResolverActivity.EXTRA_SELECTED_PROFILE;
import android.annotation.Nullable;
import android.annotation.TestApi;
import android.app.Activity;
import android.app.ActivityOptions;
import android.app.ActivityThread;
import android.app.AppGlobals;
import android.app.admin.DevicePolicyManager;
@@ -230,7 +231,15 @@ public class IntentForwarderActivity extends Activity {

        ((Button) findViewById(R.id.button_open)).setText(getOpenInWorkButtonString(launchIntent));
        findViewById(R.id.button_open).setOnClickListener(v -> {
            startActivityAsCaller(launchIntent, targetUserId);
            startActivityAsCaller(
                    launchIntent,
                    ActivityOptions.makeCustomAnimation(
                                    getApplicationContext(),
                                    R.anim.activity_open_enter,
                                    R.anim.push_down_out)
                            .toBundle(),
                    /* ignoreTargetSecurity= */ false,
                    targetUserId);
            finish();
        });