From b1cc47d9cfddf4c6840a291f3cd6c0733f82d7f5 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Mon, 27 Mar 2017 22:56:39 +0200 Subject: [PATCH] Try to fix --- .../android/ui/activity/NotificationsActivity.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java b/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java index 6b41f159a8..3f9d8898d1 100644 --- a/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java @@ -2,7 +2,9 @@ * Nextcloud Android client application * * @author Andy Scherzinger + * @author Mario Danic * Copyright (C) 2017 Andy Scherzinger + * Copyright (C) 2017 Mario Danic * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -36,7 +38,9 @@ import com.owncloud.android.lib.common.operations.RemoteOperation; import com.owncloud.android.lib.common.operations.RemoteOperationResult; import com.owncloud.android.lib.common.utils.Log_OC; import com.owncloud.android.lib.resources.notifications.GetRemoteNotificationsOperation; -import com.owncloud.android.lib.resources.notifications.Notification; +import com.owncloud.android.lib.resources.notifications.models.Notification; + +import java.util.List; import butterknife.BindString; import butterknife.BindView; @@ -105,7 +109,7 @@ public class NotificationsActivity extends FileActivity { fetchAndSetData(); } - private void populateList(Notification notifications) { + private void populateList(List notifications) { } @@ -118,7 +122,7 @@ public class NotificationsActivity extends FileActivity { getRemoteNotificationOperation.execute(account, NotificationsActivity.this); if (result.isSuccess() && result.getData() != null) { - final Notification notifications = (Notification) result.getData().get(0); + final List notifications = result.getNotificationData(); runOnUiThread(new Runnable() { @Override