From d408a47dba6e1fa867fb7353fd70044bc7cac777 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 9 Aug 2019 10:38:25 +0800 Subject: Fixed no posts, no comments, no users and no subreddits message cannot be retained after orientation change in PostFragment, CommentsListingFragment, UserListingFragment and SubredditListingFragment respectively. Minor bugs fixed. --- app/src/main/res/layout/fragment_followed_users_listing.xml | 3 ++- app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml | 2 +- app/src/main/res/values/strings.xml | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/fragment_followed_users_listing.xml b/app/src/main/res/layout/fragment_followed_users_listing.xml index be07b5e7..c7e33729 100644 --- a/app/src/main/res/layout/fragment_followed_users_listing.xml +++ b/app/src/main/res/layout/fragment_followed_users_listing.xml @@ -27,7 +27,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16dp" - android:gravity="center" /> + android:gravity="center" + android:text="@string/no_users" /> diff --git a/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml b/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml index ccf44e0b..2263dd7c 100644 --- a/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml +++ b/app/src/main/res/layout/fragment_subscribed_subreddits_listing.xml @@ -28,7 +28,7 @@ android:layout_height="wrap_content" android:layout_marginTop="16dp" android:gravity="center" - android:text="@string/no_subreddits"/> + android:text="@string/no_subreddits" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 062c13fc..1234b405 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,9 +35,10 @@ Error loading posts.\nTap to retry. Error searching subreddits.\nTap to retry. Error searching users.\nTap to retry. - No posts found. - No subreddits found. - No users found. + No posts found + No comments found + No subreddits found + No users found No storage permission to save this file Error loading comments. -- cgit v1.2.3