Skip to content

Commit 751d5ac

Browse files
committed
_mActivity: FragmentActivity -> SupportActivity
1 parent 9e2dbdf commit 751d5ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fragmentation/src/main/java/me/yokeyword/fragmentation/SupportFragment.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import android.os.Bundle;
66
import android.support.annotation.Nullable;
77
import android.support.v4.app.Fragment;
8-
import android.support.v4.app.FragmentActivity;
98
import android.view.View;
109
import android.view.animation.Animation;
1110

@@ -19,7 +18,7 @@
1918
*/
2019
public class SupportFragment extends Fragment implements ISupportFragment {
2120
final SupportFragmentDelegate mDelegate = new SupportFragmentDelegate(this);
22-
protected FragmentActivity _mActivity;
21+
protected SupportActivity _mActivity;
2322

2423
@Override
2524
public SupportFragmentDelegate getSupportDelegate() {
@@ -39,7 +38,7 @@ public ExtraTransaction extraTransaction() {
3938
public void onAttach(Activity activity) {
4039
super.onAttach(activity);
4140
mDelegate.onAttach(activity);
42-
_mActivity = mDelegate.getActivity();
41+
_mActivity = (SupportActivity) mDelegate.getActivity();
4342
}
4443

4544
@Override

0 commit comments

Comments
 (0)