diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-09-14 16:01:32 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-09-14 16:01:32 -0600 |
commit | 0be17f151a4789a608cdc8607f8f959e85775436 (patch) | |
tree | 54c33327031f7113cfb5414d78d22bb154d75dde /app/src/main/java/me/brysonsteck | |
parent | 0f910490ec826f2e3130505937e1f8b6e48dabc3 (diff) | |
download | wiimmfi-watcher-0be17f151a4789a608cdc8607f8f959e85775436.tar wiimmfi-watcher-0be17f151a4789a608cdc8607f8f959e85775436.tar.gz wiimmfi-watcher-0be17f151a4789a608cdc8607f8f959e85775436.tar.bz2 |
added notice to app1.2.1
Diffstat (limited to 'app/src/main/java/me/brysonsteck')
-rw-r--r-- | app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
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<ObservableList<FriendCode>>() { @Override |