diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-05-10 13:23:25 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-05-10 13:23:25 -0600 |
commit | 27b36802b876805ae30c322ecbadf7286d2239fb (patch) | |
tree | 4ef9f2d216cf585315b435b926e9082f35fbed40 /app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel | |
parent | eb45e67349cc3ebec45aaca7822f9d7881db7aeb (diff) | |
download | wiimmfi-watcher-27b36802b876805ae30c322ecbadf7286d2239fb.tar wiimmfi-watcher-27b36802b876805ae30c322ecbadf7286d2239fb.tar.gz wiimmfi-watcher-27b36802b876805ae30c322ecbadf7286d2239fb.tar.bz2 |
final cleanup before first release
Diffstat (limited to 'app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel')
-rw-r--r-- | app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel/FriendCodeViewModel.java | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel/FriendCodeViewModel.java b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel/FriendCodeViewModel.java index 87db049..25cdd64 100644 --- a/app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel/FriendCodeViewModel.java +++ b/app/src/main/java/me/brysonsteck/wiimmfiwatcher/viewmodel/FriendCodeViewModel.java @@ -30,28 +30,16 @@ public class FriendCodeViewModel extends AndroidViewModel { }).start(); } - public void setCurrentEntry(FriendCode entry) { - currentEntry.postValue(entry); - } - - public MutableLiveData<FriendCode> getCurrentEntry() { - return currentEntry; - } - - public MutableLiveData<Boolean> getSaving() { - return saving; - } - public ObservableArrayList<FriendCode> getEntries() { return entries; } - public boolean deleteAll() { - for (FriendCode entry: entries) { - db.getFriendCodeDao().nukeTable(); - } - return true; - } +// public boolean deleteAll() { +// for (FriendCode entry: entries) { +// db.getFriendCodeDao().nukeTable(); +// } +// return true; +// } public void saveFriendCode(String name, String friendCode) { saving.setValue(true); @@ -70,10 +58,10 @@ public class FriendCodeViewModel extends AndroidViewModel { }).start(); } - public void deleteEntry(FriendCode entry) { - new Thread(() -> { - db.getFriendCodeDao().delete(entry); - entries.remove(entry); - }).start(); - } +// public void deleteEntry(FriendCode entry) { +// new Thread(() -> { +// db.getFriendCodeDao().delete(entry); +// entries.remove(entry); +// }).start(); +// } } |