From 4364e20e36aba6de96d25b237cac7c178a5e1980 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 30 Aug 2018 14:08:02 +0800 Subject: Display a custom error view when there is something wrong when loading best posts. Probably fix a bug that holder.getAdapterPosition() returns -1 when loading subreddit icons in the RecyclerView of PostFragment. Subreddit banners are parsed correctly in ParseSubscribedThing. Check if the api call is successful in onResponse. Rewrite some methods. --- app/src/main/res/values/strings.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/res/values/strings.xml') diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2014e3bb..2b98acbb 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -8,6 +8,8 @@ Settings Download + Error loading posts.\nTap to retry. + Cannot load posts Error loading comments Retry -- cgit v1.2.3