Skip to content

Commit

Permalink
see 08/25 log
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankj committed Aug 25, 2019
1 parent 7bc1ec6 commit 71f7ca0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import android.support.annotation.Nullable;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.util.Pair;
import android.text.TextUtils;
import android.util.Log;
Expand Down Expand Up @@ -2026,7 +2025,7 @@ private static boolean startActivityForResult(final Intent intent,
private static Bundle getOptionsBundle(final Fragment fragment,
final int enterAnim,
final int exitAnim) {
FragmentActivity activity = fragment.getActivity();
Activity activity = fragment.getActivity();
if (activity == null) return null;
return ActivityOptionsCompat.makeCustomAnimation(activity, enterAnim, exitAnim).toBundle();
}
Expand All @@ -2039,7 +2038,7 @@ private static Bundle getOptionsBundle(final Context context,

private static Bundle getOptionsBundle(final Fragment fragment,
final View[] sharedElements) {
FragmentActivity activity = fragment.getActivity();
Activity activity = fragment.getActivity();
if (activity == null) return null;
return getOptionsBundle(activity, sharedElements);
}
Expand Down

0 comments on commit 71f7ca0

Please sign in to comment.