mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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.CommonsApplication;
|
||||||
import fr.free.nrw.commons.theme.NavigationBaseActivity;
|
import fr.free.nrw.commons.theme.NavigationBaseActivity;
|
||||||
|
import timber.log.Timber;
|
||||||
|
|
||||||
public abstract class AuthenticatedActivity extends NavigationBaseActivity {
|
public abstract class AuthenticatedActivity extends NavigationBaseActivity {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,16 +209,6 @@ public class ShareActivity
|
||||||
protected void onAuthCookieAcquired(String authCookie) {
|
protected void onAuthCookieAcquired(String authCookie) {
|
||||||
app.getMWApi().setAuthCookie(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
|
@Override
|
||||||
|
|
@ -311,6 +301,18 @@ public class ShareActivity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
performPreuploadProcessingOfFile();
|
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
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue