diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-19 03:41:21 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-19 03:41:21 +0000 |
commit | 78ea14b3ae7d8f769ee869a654390dd376aee50f (patch) | |
tree | a705c57c1f28aa03e73387d40c6c211ecd67f080 /app/src/main/java/ml | |
parent | aabed07a46c80a452b62a21f27ac9db6a284ce4e (diff) | |
download | infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.gz infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.bz2 infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.lz infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.xz infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.tar.zst infinity-for-reddit-78ea14b3ae7d8f769ee869a654390dd376aee50f.zip |
Update strings.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java index 54da61e9..85d50993 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/RedditAPIInfoBottomSheetFragment.java @@ -1,20 +1,14 @@ package ml.docilealligator.infinityforreddit.bottomsheetfragments; import android.content.Context; -import android.content.Intent; -import android.net.Uri; import android.os.Bundle; -import android.text.SpannableString; -import android.text.util.Linkify; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; -import me.saket.bettermovementmethod.BetterLinkMovementMethod; import ml.docilealligator.infinityforreddit.R; -import ml.docilealligator.infinityforreddit.activities.LinkResolverActivity; import ml.docilealligator.infinityforreddit.activities.MainActivity; import ml.docilealligator.infinityforreddit.customviews.LandscapeExpandedRoundedBottomSheetDialogFragment; import ml.docilealligator.infinityforreddit.databinding.FragmentRedditApiInfoBottomSheetBinding; @@ -40,7 +34,7 @@ public class RedditAPIInfoBottomSheetFragment extends LandscapeExpandedRoundedBo binding.getRoot().setNestedScrollingEnabled(true); - SpannableString message = new SpannableString(getString(R.string.reddit_api_info, "https://www.reddit.com/r/reddit/comments/145bram/addressing_the_community_about_changes_to_our_api", "https://www.reddit.com/r/Infinity_For_Reddit/comments/147bhsg/the_future_of_infinity")); + /*SpannableString message = new SpannableString(getString(R.string.reddit_api_info, "https://www.reddit.com/r/reddit/comments/145bram/addressing_the_community_about_changes_to_our_api", "https://www.reddit.com/r/Infinity_For_Reddit/comments/147bhsg/the_future_of_infinity")); Linkify.addLinks(message, Linkify.WEB_URLS); binding.messageTextViewRedditApiInfoBottomSheetFragment.setText(message); binding.messageTextViewRedditApiInfoBottomSheetFragment.setMovementMethod(BetterLinkMovementMethod.newInstance().setOnLinkClickListener((textView, url) -> { @@ -48,7 +42,7 @@ public class RedditAPIInfoBottomSheetFragment extends LandscapeExpandedRoundedBo intent.setData(Uri.parse(url)); startActivity(intent); return true; - })); + }));*/ binding.messageTextViewRedditApiInfoBottomSheetFragment.setLinkTextColor(getResources().getColor(R.color.colorAccent)); binding.doNotShowThisAgainTextView.setOnClickListener(view -> { |