diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-09-18 08:01:08 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-09-18 08:01:08 +0000 |
commit | 50da29ad8c507898b337b0ebcb84b34ef1680978 (patch) | |
tree | 15c6efd29ac053c2aa21cf52d836f5d97fa60bbb /app/src/main/java/Settings | |
parent | c1adf5153798a8380eec1e9165bf493e2fe0ba7e (diff) | |
download | infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.gz infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.bz2 infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.lz infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.xz infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.tar.zst infinity-for-reddit-50da29ad8c507898b337b0ebcb84b34ef1680978.zip |
Saving and unsaving comments are now available. Use xml thumbtack to avoid crashes on low resolution devices. Add a subreddit link in Settings -> About.
Diffstat (limited to 'app/src/main/java/Settings')
-rw-r--r-- | app/src/main/java/Settings/AboutPreferenceFragment.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/java/Settings/AboutPreferenceFragment.java b/app/src/main/java/Settings/AboutPreferenceFragment.java index 8d93bd6c..f2ba0518 100644 --- a/app/src/main/java/Settings/AboutPreferenceFragment.java +++ b/app/src/main/java/Settings/AboutPreferenceFragment.java @@ -27,6 +27,7 @@ public class AboutPreferenceFragment extends PreferenceFragmentCompat { Preference reviewPreference = findPreference(SharedPreferencesUtils.RATE_KEY); Preference emailPreference = findPreference(SharedPreferencesUtils.EMAIL_KEY); Preference redditAccountPreference = findPreference(SharedPreferencesUtils.REDDIT_ACCOUNT_KEY); + Preference subredditPreference = findPreference(SharedPreferencesUtils.SUBREDDIT_KEY); Activity activity = getActivity(); @@ -76,6 +77,15 @@ public class AboutPreferenceFragment extends PreferenceFragmentCompat { return true; }); } + + if(subredditPreference != null) { + subredditPreference.setOnPreferenceClickListener(preference -> { + Intent intent = new Intent(activity, LinkResolverActivity.class); + intent.setData(Uri.parse("https://www.reddit.com/r/Infinity_For_Reddit")); + startActivity(intent); + return true; + }); + } } } } |