From 0be17f151a4789a608cdc8607f8f959e85775436 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 14 Sep 2021 16:01:32 -0600 Subject: added notice to app --- .../me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/src/main/java/me/brysonsteck/wiimmfiwatcher') diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java index 2a63379..eea03fb 100644 --- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java +++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java @@ -3,6 +3,7 @@ package me.brysonsteck.wiimmfiwatcher.fragments; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; +import android.text.method.LinkMovementMethod; import android.transition.TransitionInflater; import android.view.KeyEvent; import android.view.View; @@ -64,6 +65,11 @@ public class WatchCodeFragment extends Fragment { progressBar = new ProgressDialog(getContext(), R.style.AppCompatAlertDialogStyle); MaterialTextView errorText = view.findViewById(R.id.error_text); + // TODO: Remove these 3 lines of code if DDoS protection is removed \/ + errorText.setText(R.string.ddos_notice); + errorText.setClickable(true); + errorText.setMovementMethod(LinkMovementMethod.getInstance()); + WatchCodeAdapter adapter = new WatchCodeAdapter(getContext(), viewModel.getEntries(), errorText, progressBar); viewModel.getEntries().addOnListChangedCallback(new ObservableList.OnListChangedCallback>() { @Override -- cgit v1.2.3