From 6576205f90b21350571b8601125890b1aa5e6664 Mon Sep 17 00:00:00 2001 From: Paul <133590454+AppearamidGuy@users.noreply.github.com> Date: Thu, 14 Sep 2023 22:31:49 +0800 Subject: Use most recent Reddit user agreement (#1484) Fixes #1483 --- .../ml/docilealligator/infinityforreddit/activities/LoginActivity.java | 2 +- .../infinityforreddit/settings/MainPreferenceFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java index 832885b9..5171ee04 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java @@ -271,7 +271,7 @@ public class LoginActivity extends BaseActivity { TextView messageTextView = new TextView(this); int padding = (int) Utils.convertDpToPixel(24, this); messageTextView.setPaddingRelative(padding, padding, padding, padding); - SpannableString message = new SpannableString(getString(R.string.user_agreement_message, "https://www.redditinc.com/policies/user-agreement-september-12-2021", "https://docile-alligator.github.io")); + SpannableString message = new SpannableString(getString(R.string.user_agreement_message, "https://www.redditinc.com/policies/user-agreement", "https://docile-alligator.github.io")); Linkify.addLinks(message, Linkify.WEB_URLS); messageTextView.setMovementMethod(BetterLinkMovementMethod.newInstance().setOnLinkClickListener(new BetterLinkMovementMethod.OnLinkClickListener() { @Override diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/settings/MainPreferenceFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/settings/MainPreferenceFragment.java index ef64c33e..284ab852 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/settings/MainPreferenceFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/settings/MainPreferenceFragment.java @@ -68,7 +68,7 @@ public class MainPreferenceFragment extends CustomFontPreferenceFragmentCompat { if (redditUserAgreementPreference != null) { redditUserAgreementPreference.setOnPreferenceClickListener(preference -> { Intent intent = new Intent(activity, LinkResolverActivity.class); - intent.setData(Uri.parse("https://www.redditinc.com/policies/user-agreement-september-12-2021")); + intent.setData(Uri.parse("https://www.redditinc.com/policies/user-agreement")); activity.startActivity(intent); return true; }); -- cgit v1.2.3