Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import androidx.fragment.app.FragmentTransaction;

import fr.free.nrw.commons.MediaDataExtractor;
import fr.free.nrw.commons.auth.SessionManager;
import io.reactivex.disposables.Disposable;
import java.util.List;

Expand Down Expand Up @@ -94,6 +95,9 @@ public class ContributionsFragment

@Inject ContributionsPresenter contributionsPresenter;

@Inject
SessionManager sessionManager;

private LatLng curLatLng;

private boolean firstLocationUpdate = true;
Expand Down Expand Up @@ -162,7 +166,8 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
showContributionsListFragment();
}

if (!ConfigUtils.isBetaFlavour()) {
if (!ConfigUtils.isBetaFlavour() && sessionManager.isUserLoggedIn()
&& sessionManager.getCurrentAccount() != null) {
setUploadCount();
}

Expand Down