Loading core/java/android/app/DialogFragment.java +5 −1 Original line number Diff line number Diff line Loading @@ -272,9 +272,13 @@ public class DialogFragment extends Fragment } else { FragmentTransaction ft = getFragmentManager().openTransaction(); ft.remove(this); if (allowStateLoss) { ft.commitAllowingStateLoss(); } else { ft.commit(); } } } public Dialog getDialog() { return mDialog; Loading core/java/android/app/FragmentManager.java +12 −7 Original line number Diff line number Diff line Loading @@ -850,7 +850,8 @@ final class FragmentManagerImpl extends FragmentManager { } public void enqueueAction(Runnable action, boolean allowStateLoss) { if (!allowStateLoss && mStateSaved) { if (!allowStateLoss) { if (mStateSaved) { throw new IllegalStateException( "Can not perform this action after onSaveInstanceState"); } Loading @@ -858,7 +859,11 @@ final class FragmentManagerImpl extends FragmentManager { throw new IllegalStateException( "Can not perform this action inside of " + mNoTransactionsBecause); } } synchronized (this) { if (mActivity == null) { throw new IllegalStateException("Activity has been destroyed"); } if (mPendingActions == null) { mPendingActions = new ArrayList<Runnable>(); } Loading core/java/android/view/animation/Animation.java +1 −1 Original line number Diff line number Diff line Loading @@ -749,7 +749,7 @@ public abstract class Animation implements Cloneable { * otherwise. * * @param currentTime Where we are in the animation. This is wall clock time. * @param outTransformation A tranformation object that is provided by the * @param outTransformation A transformation object that is provided by the * caller and will be filled in by the animation. * @return True if the animation is still running */ Loading core/java/android/view/animation/DecelerateInterpolator.java +4 −2 Original line number Diff line number Diff line Loading @@ -50,11 +50,13 @@ public class DecelerateInterpolator implements Interpolator { } public float getInterpolation(float input) { float result; if (mFactor == 1.0f) { return (float)(1.0f - (1.0f - input) * (1.0f - input)); result = (float)(1.0f - (1.0f - input) * (1.0f - input)); } else { return (float)(1.0f - Math.pow((1.0f - input), 2 * mFactor)); result = (float)(1.0f - Math.pow((1.0f - input), 2 * mFactor)); } return result; } private float mFactor = 1.0f; Loading core/res/res/anim/activity_close_enter.xml +2 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,8 @@ */ --> <set xmlns:android="http://schemas.android.com/apk/res/android"> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <!-- Do nothing. --> <alpha android:fromAlpha="1.0" android:toAlpha="1.0" android:duration="@android:integer/config_mediumAnimTime"/> Loading Loading
core/java/android/app/DialogFragment.java +5 −1 Original line number Diff line number Diff line Loading @@ -272,9 +272,13 @@ public class DialogFragment extends Fragment } else { FragmentTransaction ft = getFragmentManager().openTransaction(); ft.remove(this); if (allowStateLoss) { ft.commitAllowingStateLoss(); } else { ft.commit(); } } } public Dialog getDialog() { return mDialog; Loading
core/java/android/app/FragmentManager.java +12 −7 Original line number Diff line number Diff line Loading @@ -850,7 +850,8 @@ final class FragmentManagerImpl extends FragmentManager { } public void enqueueAction(Runnable action, boolean allowStateLoss) { if (!allowStateLoss && mStateSaved) { if (!allowStateLoss) { if (mStateSaved) { throw new IllegalStateException( "Can not perform this action after onSaveInstanceState"); } Loading @@ -858,7 +859,11 @@ final class FragmentManagerImpl extends FragmentManager { throw new IllegalStateException( "Can not perform this action inside of " + mNoTransactionsBecause); } } synchronized (this) { if (mActivity == null) { throw new IllegalStateException("Activity has been destroyed"); } if (mPendingActions == null) { mPendingActions = new ArrayList<Runnable>(); } Loading
core/java/android/view/animation/Animation.java +1 −1 Original line number Diff line number Diff line Loading @@ -749,7 +749,7 @@ public abstract class Animation implements Cloneable { * otherwise. * * @param currentTime Where we are in the animation. This is wall clock time. * @param outTransformation A tranformation object that is provided by the * @param outTransformation A transformation object that is provided by the * caller and will be filled in by the animation. * @return True if the animation is still running */ Loading
core/java/android/view/animation/DecelerateInterpolator.java +4 −2 Original line number Diff line number Diff line Loading @@ -50,11 +50,13 @@ public class DecelerateInterpolator implements Interpolator { } public float getInterpolation(float input) { float result; if (mFactor == 1.0f) { return (float)(1.0f - (1.0f - input) * (1.0f - input)); result = (float)(1.0f - (1.0f - input) * (1.0f - input)); } else { return (float)(1.0f - Math.pow((1.0f - input), 2 * mFactor)); result = (float)(1.0f - Math.pow((1.0f - input), 2 * mFactor)); } return result; } private float mFactor = 1.0f; Loading
core/res/res/anim/activity_close_enter.xml +2 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,8 @@ */ --> <set xmlns:android="http://schemas.android.com/apk/res/android"> <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <!-- Do nothing. --> <alpha android:fromAlpha="1.0" android:toAlpha="1.0" android:duration="@android:integer/config_mediumAnimTime"/> Loading