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

Commit f3c4cf0b authored by wilsonshih's avatar wilsonshih Committed by Wei Sheng Shih
Browse files

Deprecate overridePendingTransition for U.

Activity#overrideActivityTransition can replace it completely.

Bug: 269618510
Test: build.
Change-Id: Id494777e2e67cee32186b66f7ec7471f55006ffd
parent 2985f855
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4492,8 +4492,8 @@ package android.app {
    method public void openOptionsMenu();
    method public void overrideActivityTransition(int, @AnimRes int, @AnimRes int);
    method public void overrideActivityTransition(int, @AnimRes int, @AnimRes int, @ColorInt int);
    method public void overridePendingTransition(int, int);
    method public void overridePendingTransition(int, int, int);
    method @Deprecated public void overridePendingTransition(int, int);
    method @Deprecated public void overridePendingTransition(int, int, int);
    method public void postponeEnterTransition();
    method public void recreate();
    method public void registerActivityLifecycleCallbacks(@NonNull android.app.Application.ActivityLifecycleCallbacks);
+4 −0
Original line number Diff line number Diff line
@@ -6621,7 +6621,9 @@ public class Activity extends ContextThemeWrapper
     * the incoming activity.  Use 0 for no animation.
     * @param exitAnim A resource ID of the animation resource to use for
     * the outgoing activity.  Use 0 for no animation.
     * @deprecated Use {@link #overrideActivityTransition(int, int, int)}} instead.
     */
    @Deprecated
    public void overridePendingTransition(int enterAnim, int exitAnim) {
        overridePendingTransition(enterAnim, exitAnim, 0);
    }
@@ -6644,7 +6646,9 @@ public class Activity extends ContextThemeWrapper
     * the outgoing activity.  Use 0 for no animation.
     * @param backgroundColor The background color to use for the background during the animation if
     * the animation requires a background. Set to 0 to not override the default color.
     * @deprecated Use {@link #overrideActivityTransition(int, int, int, int)}} instead.
     */
    @Deprecated
    public void overridePendingTransition(int enterAnim, int exitAnim, int backgroundColor) {
        ActivityClient.getInstance().overridePendingTransition(mToken, getPackageName(), enterAnim,
                exitAnim, backgroundColor);