File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed 
fragmentation/src/main/java/me/yokeyword/fragmentation Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 55import  android .os .Bundle ;
66import  android .support .annotation .Nullable ;
77import  android .support .v4 .app .Fragment ;
8- import  android .support .v4 .app .FragmentActivity ;
98import  android .view .View ;
109import  android .view .animation .Animation ;
1110
1918 */ 
2019public  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 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments