From 6213acc2b0e67f3984d0717efc92f9d94ffa736a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 23 Jul 2024 13:08:59 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E5=BE=97=E5=87=A6=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wallet/WalletParentWrapperFragment.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/feature/wallet/src/main/java/one/nem/kidshift/wallet/WalletParentWrapperFragment.java b/feature/wallet/src/main/java/one/nem/kidshift/wallet/WalletParentWrapperFragment.java index 32ed3fc..593258c 100644 --- a/feature/wallet/src/main/java/one/nem/kidshift/wallet/WalletParentWrapperFragment.java +++ b/feature/wallet/src/main/java/one/nem/kidshift/wallet/WalletParentWrapperFragment.java @@ -26,6 +26,7 @@ import dagger.hilt.android.AndroidEntryPoint; import one.nem.kidshift.data.ChildData; import one.nem.kidshift.data.RewardData; import one.nem.kidshift.model.ChildModel; +import one.nem.kidshift.model.callback.ChildModelCallback; import one.nem.kidshift.utils.FabManager; import one.nem.kidshift.utils.KSLogger; import one.nem.kidshift.utils.ToolBarManager; @@ -73,9 +74,24 @@ public class WalletParentWrapperFragment extends Fragment { TabAdapter tabAdapter = new TabAdapter(requireActivity()); // デバッグ用 - List childList = childData.getChildListDirect().join(); - tabAdapter.setChildList(childList); + List childList = childData.getChildList(new ChildModelCallback() { + @Override + public void onUnchanged() { + // TODO: impl + } + @Override + public void onUpdated(List childModelList) { + // TODO: impl + } + + @Override + public void onFailed(String message) { + // TODO: impl + } + }).join(); + + tabAdapter.setChildList(childList); viewPager.setAdapter(tabAdapter); new TabLayoutMediator(tabLayout, viewPager, (tab, position) -> {