This commit is contained in:
AndyScherzinger 2017-09-01 13:27:56 +02:00 committed by tobiaskaminsky
parent deb8af7323
commit 1fa2148d19
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 6 additions and 2 deletions

View file

@ -222,12 +222,14 @@ public class ActivitiesListActivity extends FileActivity implements ActivityList
runOnUiThread(new Runnable() {
@Override
public void run() {
populateList(activities, ownCloudClient);
if (activities.size() > 0) {
populateList(activities, ownCloudClient);
swipeEmptyListRefreshLayout.setVisibility(View.GONE);
swipeListRefreshLayout.setVisibility(View.VISIBLE);
} else {
setEmptyContent(noResultsHeadline, noResultsMessage);
swipeListRefreshLayout.setVisibility(View.GONE);
swipeEmptyListRefreshLayout.setVisibility(View.VISIBLE);
}
}
});

View file

@ -213,12 +213,14 @@ public class NotificationsActivity extends FileActivity {
runOnUiThread(new Runnable() {
@Override
public void run() {
populateList(notifications);
if (notifications.size() > 0) {
populateList(notifications);
swipeEmptyListRefreshLayout.setVisibility(View.GONE);
swipeListRefreshLayout.setVisibility(View.VISIBLE);
} else {
setEmptyContent(noResultsHeadline, noResultsMessage);
swipeListRefreshLayout.setVisibility(View.GONE);
swipeEmptyListRefreshLayout.setVisibility(View.VISIBLE);
}
}
});