Skip to content

Commit 35fdb43

Browse files
committed
Fixed small bug when incrementing counter in AccountManagerCallback
1 parent b094d50 commit 35fdb43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/CommonsApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ int getIndex() {
223223

224224
@Override
225225
public void run(AccountManagerFuture<Boolean> accountManagerFuture) {
226-
setIndex(index++);
226+
setIndex(getIndex() + 1);
227227

228228
try {
229229
if (accountManagerFuture != null) {

0 commit comments

Comments
 (0)