@@ -209,16 +209,6 @@ public void onBackPressed() {
209209 protected void onAuthCookieAcquired (String authCookie ) {
210210 app .getMWApi ().setAuthCookie (authCookie );
211211
212- SingleUploadFragment shareView = (SingleUploadFragment ) getSupportFragmentManager ().findFragmentByTag ("shareView" );
213- categorizationFragment = (CategorizationFragment ) getSupportFragmentManager ().findFragmentByTag ("categorization" );
214- if (shareView == null && categorizationFragment == null ) {
215- shareView = new SingleUploadFragment ();
216- getSupportFragmentManager ()
217- .beginTransaction ()
218- .add (R .id .single_upload_fragment_container , shareView , "shareView" )
219- .commitAllowingStateLoss ();
220- }
221- uploadController .prepareService ();
222212 }
223213
224214 @ Override
@@ -311,6 +301,18 @@ R.drawable.ic_error_outline_black_24dp, getTheme()))
311301 }
312302 }
313303 performPreuploadProcessingOfFile ();
304+
305+
306+ SingleUploadFragment shareView = (SingleUploadFragment ) getSupportFragmentManager ().findFragmentByTag ("shareView" );
307+ categorizationFragment = (CategorizationFragment ) getSupportFragmentManager ().findFragmentByTag ("categorization" );
308+ if (shareView == null && categorizationFragment == null ) {
309+ shareView = new SingleUploadFragment ();
310+ getSupportFragmentManager ()
311+ .beginTransaction ()
312+ .add (R .id .single_upload_fragment_container , shareView , "shareView" )
313+ .commitAllowingStateLoss ();
314+ }
315+ uploadController .prepareService ();
314316 }
315317
316318 @ Override
0 commit comments