mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	
						commit
						ee409a9e8f
					
				
					 2 changed files with 13 additions and 10 deletions
				
			
		|  | @ -12,6 +12,7 @@ import java.io.IOException; | |||
| 
 | ||||
| import fr.free.nrw.commons.CommonsApplication; | ||||
| import fr.free.nrw.commons.theme.NavigationBaseActivity; | ||||
| import timber.log.Timber; | ||||
| 
 | ||||
| public abstract class AuthenticatedActivity extends NavigationBaseActivity { | ||||
| 
 | ||||
|  |  | |||
|  | @ -209,16 +209,6 @@ public  class       ShareActivity | |||
|     protected void onAuthCookieAcquired(String authCookie) { | ||||
|         app.getMWApi().setAuthCookie(authCookie); | ||||
| 
 | ||||
|         SingleUploadFragment shareView = (SingleUploadFragment) getSupportFragmentManager().findFragmentByTag("shareView"); | ||||
|         categorizationFragment = (CategorizationFragment) getSupportFragmentManager().findFragmentByTag("categorization"); | ||||
|         if(shareView == null && categorizationFragment == null) { | ||||
|             shareView = new SingleUploadFragment(); | ||||
|             getSupportFragmentManager() | ||||
|                     .beginTransaction() | ||||
|                     .add(R.id.single_upload_fragment_container, shareView, "shareView") | ||||
|                     .commitAllowingStateLoss(); | ||||
|         } | ||||
|         uploadController.prepareService(); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|  | @ -311,6 +301,18 @@ public  class       ShareActivity | |||
|             } | ||||
|         } | ||||
|         performPreuploadProcessingOfFile(); | ||||
| 
 | ||||
| 
 | ||||
|         SingleUploadFragment shareView = (SingleUploadFragment) getSupportFragmentManager().findFragmentByTag("shareView"); | ||||
|         categorizationFragment = (CategorizationFragment) getSupportFragmentManager().findFragmentByTag("categorization"); | ||||
|         if(shareView == null && categorizationFragment == null) { | ||||
|             shareView = new SingleUploadFragment(); | ||||
|             getSupportFragmentManager() | ||||
|                     .beginTransaction() | ||||
|                     .add(R.id.single_upload_fragment_container, shareView, "shareView") | ||||
|                     .commitAllowingStateLoss(); | ||||
|         } | ||||
|         uploadController.prepareService(); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Josephine Lim
						Josephine Lim