mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
resolves #1477
This commit is contained in:
parent
deb8af7323
commit
1fa2148d19
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue