diff options
| author | 2023-03-02 18:48:28 +0000 | |
|---|---|---|
| committer | 2023-03-02 18:48:28 +0000 | |
| commit | 6687110d9f07868e8a0daa7c30521dd488623904 (patch) | |
| tree | 6704d5d605ab762d8bdd6c9cc6be391c50f0085b /java/src | |
| parent | 75637203cef7ed2d0b6c6f4c19e9f8541fd3a4cc (diff) | |
| parent | 05ba3a265af1b5763899d543f66d033fbd3cbeb7 (diff) | |
Merge "Add animation to custom actions" into tm-qpr-dev
Diffstat (limited to 'java/src')
| -rw-r--r-- | java/src/com/android/intentresolver/ChooserActionFactory.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/java/src/com/android/intentresolver/ChooserActionFactory.java b/java/src/com/android/intentresolver/ChooserActionFactory.java index 566b2546..14d59720 100644 --- a/java/src/com/android/intentresolver/ChooserActionFactory.java +++ b/java/src/com/android/intentresolver/ChooserActionFactory.java @@ -18,6 +18,7 @@ package com.android.intentresolver; import android.annotation.Nullable; import android.app.Activity; +import android.app.ActivityOptions; import android.app.PendingIntent; import android.content.ClipData; import android.content.ClipboardManager; @@ -490,7 +491,18 @@ public final class ChooserActionFactory implements ChooserContentPreviewUi.Actio icon, () -> { try { - action.getAction().send(); + action.getAction().send( + null, + 0, + null, + null, + null, + null, + ActivityOptions.makeCustomAnimation( + context, + R.anim.slide_in_right, + R.anim.slide_out_left) + .toBundle()); } catch (PendingIntent.CanceledException e) { Log.d(TAG, "Custom action, " + action.getLabel() + ", has been cancelled"); } |