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

Commit edd0e262 authored by Andrey Yepin's avatar Andrey Yepin Committed by Android (Google) Code Review
Browse files

Merge "Ignore activity animation in interactive Chooser session." into main

parents 231baae5 c97b9302
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ public class ChooserManager {
                | Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
                | Intent.FLAG_ACTIVITY_TASK_ON_HOME
                | Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT);
        chooserIntent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
        Bundle binderExtras = new Bundle();
        ChooserSession chooserSession = new ChooserSession();
        binderExtras.putBinder(ChooserSession.EXTRA_CHOOSER_SESSION, chooserSession.getBinder());
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP
import android.content.Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT
import android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK
import android.content.Intent.FLAG_ACTIVITY_NEW_TASK
import android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION
import android.content.Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
import android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP
import android.content.Intent.FLAG_ACTIVITY_TASK_ON_HOME
@@ -72,6 +73,8 @@ class ChooserManagerTest {
        }

        assertThat(intentCaptor.firstValue.flags and flags).isEqualTo(0)
        assertThat(intentCaptor.firstValue.flags and FLAG_ACTIVITY_NO_ANIMATION)
            .isEqualTo(FLAG_ACTIVITY_NO_ANIMATION)
        val options = ActivityOptions.fromBundle(optionsCaptor.firstValue)
        assertThat(options.isAllowPassThroughOnTouchOutside).isTrue()
    }