From d83ded01933d653ac7ea62e9f5f9c4915263a5ca Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 24 Aug 2018 10:38:37 +0800 Subject: Display a thumbtack icon if the post is stickied on top. Display a gold icon and the number of gold if the post is gilded. Load subreddit icons in LoadSubredditIconAsyncTaskListener instead of loading the icons in onPostExecute() of LoadSubredditIconAsyncTask in order to avoid loading icons on a destroyed activity when start the Activity and then press back or up button immediately. --- .../main/res/layout/activity_view_post_detail.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'app/src/main/res/layout/activity_view_post_detail.xml') diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index d3b0b3ce..64a648c2 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -103,6 +103,27 @@ android:background="@drawable/rounded_corner" android:textColor="@android:color/white" /> + + + +