diff --git a/src/main/java/com/owncloud/android/ui/activities/ActivitiesActivity.java b/src/main/java/com/owncloud/android/ui/activities/ActivitiesActivity.java index 4c36bce115b8..42293e87492b 100644 --- a/src/main/java/com/owncloud/android/ui/activities/ActivitiesActivity.java +++ b/src/main/java/com/owncloud/android/ui/activities/ActivitiesActivity.java @@ -248,12 +248,8 @@ public void showActivities(List activities, OwnCloudClient client, int l // Hide the recyclerView if list is empty if (adapter.isEmpty()) { + showEmptyContent(noResultsHeadline, noResultsMessage); recyclerView.setVisibility(View.INVISIBLE); - - emptyContentMessage.setText(noResultsMessage); - emptyContentHeadline.setText(noResultsHeadline); - emptyContentMessage.setVisibility(View.VISIBLE); - emptyContentHeadline.setVisibility(View.VISIBLE); } else { emptyContentMessage.setVisibility(View.INVISIBLE); emptyContentHeadline.setVisibility(View.INVISIBLE); @@ -308,6 +304,9 @@ public void showEmptyContent(String headline, String message) { emptyContentProgressBar.setVisibility(View.GONE); emptyContentIcon.setVisibility(View.VISIBLE); + emptyContentHeadline.setVisibility(View.VISIBLE); + emptyContentMessage.setVisibility(View.VISIBLE); + } }