aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-12-19 13:09:58 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-12-19 13:09:58 +0000
commit2113d4a902de2dcc6a0347834118ffc877c865a8 (patch)
tree90a8d7e964533dd2f8035a79af9f3dfa248d3e0d /app/src/main/res
parenta914ed95ef2874bbde229a79e5c314dad474e25f (diff)
downloadinfinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.tar
infinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.tar.gz
infinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.tar.bz2
infinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.tar.lz
infinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.tar.xz
infinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.tar.zst
infinity-for-reddit-2113d4a902de2dcc6a0347834118ffc877c865a8.zip
Fixed UI in ViewMultiRedditDetailActivity. Add a share option in Settings -> About to let you easily share this app to other people. Version 2.0.0.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_multi_reddit_detail.xml3
-rw-r--r--app/src/main/res/values/strings.xml5
-rw-r--r--app/src/main/res/xml/about_preferences.xml5
3 files changed, 11 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_view_multi_reddit_detail.xml b/app/src/main/res/layout/activity_view_multi_reddit_detail.xml
index 42567cc4..a0ec7c23 100644
--- a/app/src/main/res/layout/activity_view_multi_reddit_detail.xml
+++ b/app/src/main/res/layout/activity_view_multi_reddit_detail.xml
@@ -4,7 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:id="@+id/coordinator_layout_view_multi_reddit_detail_activity"
android:background="?attr/backgroundColor"
tools:context=".Activity.ViewMultiRedditDetailActivity">
@@ -37,7 +36,7 @@
<FrameLayout
android:id="@+id/frame_layout_view_multi_reddit_detail_activity"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 366a6980..072c1b1e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -330,6 +330,8 @@
<string name="settings_reddit_account_summary">u/Hostilenemy</string>
<string name="settings_subreddit_title">Subreddit</string>
<string name="settings_subreddit_summary">r/Infinity_For_Reddit</string>
+ <string name="settings_share_title">Share</string>
+ <string name="settings_share_summary">Share this app to other people if you enjoy it</string>
<string name="no_link_available">Cannot get the link</string>
@@ -350,6 +352,7 @@
<string name="share">Share</string>
<string name="no_email_client">No Email client found</string>
+ <string name="no_app">No app available</string>
<string name="comment_saved_success">Comment saved</string>
<string name="comment_saved_failed">Unable to save comment</string>
@@ -377,4 +380,6 @@
<string name="error_getting_multi_reddit_data">Error getting multireddit data</string>
<string name="error_loading_multi_reddit_list">Cannot sync multireddits</string>
<string name="error_loading_subscriptions">Cannot sync subscriptions</string>
+
+ <string name="share_this_app">Check out Infinity for Reddit, an awesome Reddit client!\nhttps://play.google.com/store/apps/details?id=ml.docilealligator.infinityforreddit</string>
</resources>
diff --git a/app/src/main/res/xml/about_preferences.xml b/app/src/main/res/xml/about_preferences.xml
index fca988af..82898326 100644
--- a/app/src/main/res/xml/about_preferences.xml
+++ b/app/src/main/res/xml/about_preferences.xml
@@ -35,4 +35,9 @@
app:title="@string/settings_subreddit_title"
app:summary="@string/settings_subreddit_summary" />
+ <Preference
+ android:key="share"
+ app:title="@string/settings_share_title"
+ app:summary="@string/settings_share_summary" />
+
</PreferenceScreen> \ No newline at end of file