File tree 2 files changed +3
-7
lines changed
src/main/java/fr/free/nrw/commons/mwapi
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,6 @@ dependencies {
102
102
compile ' com.android.support.constraint:constraint-layout:1.0.2'
103
103
}
104
104
105
- repositories {
106
- mavenCentral()
107
- google()
108
- }
109
-
110
-
111
105
android {
112
106
compileSdkVersion project. compileSdkVersion
113
107
buildToolsVersion project. buildToolsVersion
Original file line number Diff line number Diff line change 46
46
import io .reactivex .Single ;
47
47
import timber .log .Timber ;
48
48
49
+ import static fr .free .nrw .commons .notification .NotificationType .THANK_YOU_EDIT ;
49
50
import static fr .free .nrw .commons .notification .NotificationType .UNKNOWN ;
50
51
import static fr .free .nrw .commons .notification .NotificationUtils .getNotificationFromApiResult ;
51
52
import static fr .free .nrw .commons .notification .NotificationUtils .getNotificationType ;
@@ -453,7 +454,8 @@ public List<Notification> getNotifications() {
453
454
for (int i = 0 ; i < childNodes .getLength (); i ++) {
454
455
Node node = childNodes .item (i );
455
456
if (isCommonsNotification (node )
456
- && !getNotificationType (node ).equals (UNKNOWN )) {
457
+ && !getNotificationType (node ).equals (UNKNOWN )
458
+ && !getNotificationType (node ).equals (THANK_YOU_EDIT )) {
457
459
notifications .add (getNotificationFromApiResult (context , node ));
458
460
}
459
461
}
You can’t perform that action at this time.
0 commit comments