diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-05-05 00:01:19 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-05-05 00:01:19 -0600 |
commit | 8a2c211fa2e334b7646d0b9523e1b62743d9dd96 (patch) | |
tree | a0ee4ac5720cadf7ffda60dcd7f6d225a2b79325 /app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java | |
parent | b202760cdc2b443fd07dcee593ed7f3e09d6b77b (diff) | |
download | wiimmfi-watcher-8a2c211fa2e334b7646d0b9523e1b62743d9dd96.tar wiimmfi-watcher-8a2c211fa2e334b7646d0b9523e1b62743d9dd96.tar.gz wiimmfi-watcher-8a2c211fa2e334b7646d0b9523e1b62743d9dd96.tar.bz2 |
finished final project
Diffstat (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java')
-rw-r--r-- | app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java b/app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java index 67dfdcd..6de02dc 100644 --- a/app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java +++ b/app/src/main/java/com/example/wiimmterfaceandroid/WatchCodeFragment.java @@ -44,7 +44,7 @@ public class WatchCodeFragment extends Fragment { super.onViewCreated(view, savedInstanceState); FriendCodeViewModel viewModel = new ViewModelProvider(getActivity()).get(FriendCodeViewModel.class); - WatchCodeAdapter adapter = new WatchCodeAdapter(viewModel.getEntries()); + WatchCodeAdapter adapter = new WatchCodeAdapter(getContext(), viewModel.getEntries()); viewModel.getEntries().addOnListChangedCallback(new ObservableList.OnListChangedCallback<ObservableList<FriendCode>>() { @Override public void onChanged(ObservableList<FriendCode> sender) { |