Skip to content

Commit 12b852f

Browse files
authored
Merge pull request commons-app#1184 from maskaravivek/notificationOrder
Fix order of notifications
2 parents 2773e24 + 3045b63 commit 12b852f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/fr/free/nrw/commons/notification/NotificationActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import com.pedrogomez.renderers.RVRendererAdapter;
1212

13+
import java.util.Collections;
1314
import java.util.List;
1415

1516
import javax.inject.Inject;
@@ -58,6 +59,7 @@ private void addNotifications() {
5859
.subscribeOn(Schedulers.io())
5960
.observeOn(AndroidSchedulers.mainThread())
6061
.subscribe(notificationList -> {
62+
Collections.reverse(notificationList);
6163
Timber.d("Number of notifications is %d", notificationList.size());
6264
setAdapter(notificationList);
6365
}, throwable -> Timber.e(throwable, "Error occurred while loading notifications"));

0 commit comments

Comments
 (0)