Skip to content

Commit e5c8e40

Browse files
author
maskara
committed
Suggested changes for notification fixes
1 parent 21a6b1f commit e5c8e40

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/build.gradle

-6
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ dependencies {
102102
compile 'com.android.support.constraint:constraint-layout:1.0.2'
103103
}
104104

105-
repositories {
106-
mavenCentral()
107-
google()
108-
}
109-
110-
111105
android {
112106
compileSdkVersion project.compileSdkVersion
113107
buildToolsVersion project.buildToolsVersion

app/src/main/java/fr/free/nrw/commons/mwapi/ApacheHttpClientMediaWikiApi.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import io.reactivex.Single;
4747
import timber.log.Timber;
4848

49+
import static fr.free.nrw.commons.notification.NotificationType.THANK_YOU_EDIT;
4950
import static fr.free.nrw.commons.notification.NotificationType.UNKNOWN;
5051
import static fr.free.nrw.commons.notification.NotificationUtils.getNotificationFromApiResult;
5152
import static fr.free.nrw.commons.notification.NotificationUtils.getNotificationType;
@@ -453,7 +454,8 @@ public List<Notification> getNotifications() {
453454
for (int i = 0; i < childNodes.getLength(); i++) {
454455
Node node = childNodes.item(i);
455456
if (isCommonsNotification(node)
456-
&& !getNotificationType(node).equals(UNKNOWN)) {
457+
&& !getNotificationType(node).equals(UNKNOWN)
458+
&& !getNotificationType(node).equals(THANK_YOU_EDIT)) {
457459
notifications.add(getNotificationFromApiResult(context, node));
458460
}
459461
}

0 commit comments

Comments
 (0)