diff options
author | Alex Ning <chineseperson5@gmail.com> | 2018-08-05 06:26:01 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2018-08-05 06:26:01 +0000 |
commit | f2eb18749cd591d18bb9034cd9433c64614aaec6 (patch) | |
tree | bbcf4a4d93fa847d922219f095ac4db4fd56b572 /app/src/main/res/layout | |
parent | c6026e5659a16ae1d2b3b72a1bafafd0ba467f12 (diff) | |
download | infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.tar infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.tar.gz infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.tar.bz2 infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.tar.lz infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.tar.xz infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.tar.zst infinity-for-reddit-f2eb18749cd591d18bb9034cd9433c64614aaec6.zip |
Fetch a new access token in onCreate method of MainActivity when the old access token is about to expire, specifically, to expire within the next 5 minutes or is already expired to avoid refreshing the access token many times by other queries later.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_view_subreddit_detail.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_view_subreddit_detail.xml b/app/src/main/res/layout/activity_view_subreddit_detail.xml index a840154b..460f3fb2 100644 --- a/app/src/main/res/layout/activity_view_subreddit_detail.xml +++ b/app/src/main/res/layout/activity_view_subreddit_detail.xml @@ -82,6 +82,7 @@ android:layout_marginStart="16dp" android:layout_marginEnd="16dp" android:layout_alignParentEnd="true" + android:layout_toStartOf="@id/subscriber_count_text_view_view_subreddit_detail_activity" android:textColor="@android:color/black" /> </RelativeLayout> @@ -102,9 +103,11 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:layout_collapseMode="pin" - app:popupTheme="@style/AppTheme.PopupOverlay" /> + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator" /> </android.support.design.widget.CollapsingToolbarLayout> + </android.support.design.widget.AppBarLayout> <include layout="@layout/content_view_subreddit_detail" /> |