aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-08-15 21:16:30 -0500
committerGitHub <noreply@github.com>2021-08-15 21:16:30 -0500
commitf6438b7cd9a8e2091971ae65892e3ff10d89a572 (patch)
treea017f78b65b01b87519ff29d17b5f61cd9701d74 /app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments
parent1643931494c2b9411a05fdefe8c03416fe072142 (diff)
parentb4078fe23a7cbae5eb2a017663c5b46990defcb7 (diff)
downloadwiimmfi-watcher-f6438b7cd9a8e2091971ae65892e3ff10d89a572.tar
wiimmfi-watcher-f6438b7cd9a8e2091971ae65892e3ff10d89a572.tar.gz
wiimmfi-watcher-f6438b7cd9a8e2091971ae65892e3ff10d89a572.tar.bz2
Merge pull request #1 from brysonsteck/detour
adding pictures instead
Diffstat (limited to 'app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments')
-rw-r--r--app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java7
1 files changed, 6 insertions, 1 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 2687518..2a63379 100644
--- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java
+++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/fragments/WatchCodeFragment.java
@@ -27,9 +27,11 @@ import me.brysonsteck.wiimmfiwatcher.wiimmfi.WiimmfiActivity;
public class WatchCodeFragment extends Fragment {
ProgressDialog progressBar;
+ boolean friendCodeMode = true;
- public WatchCodeFragment() {
+ public WatchCodeFragment(boolean friendCodeMode) {
super(R.layout.watch_code_fragment);
+ this.friendCodeMode = friendCodeMode;
}
public boolean isValidFriendCode(String friendCode) {
@@ -107,6 +109,9 @@ public class WatchCodeFragment extends Fragment {
recyclerView.setAdapter(adapter);
EditText friendCode = view.findViewById(R.id.friend_code_edit_text);
+ if (!friendCodeMode) {
+ friendCode.setHint(R.string.enter_mii);
+ }
Button watchButton = view.findViewById(R.id.watch_button);
watchButton.setOnClickListener(buttonClick -> {
startWiimmfiActivity(