This commit is contained in:
ろむねこ 2024-07-23 12:19:28 +09:00
parent f2c4e43b98
commit 4ba2677a15
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -16,6 +16,7 @@ import one.nem.kidshift.utils.FabManager;
import one.nem.kidshift.utils.KSLogger;
import one.nem.kidshift.utils.ToolBarManager;
import one.nem.kidshift.utils.factory.KSLoggerFactory;
import one.nem.kidshift.utils.models.FabEventCallback;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@ -99,9 +100,32 @@ public class WalletContentFragment extends Fragment {
historyItemRecyclerView.setAdapter(historyItemListAdapter);
historyItemRecyclerView.setLayoutManager(new LinearLayoutManager(requireContext()));
historyItemListAdapter.setCallback(() -> {
if (historyItemListAdapter.hasChecked()) {
fabManager.show();
initFab();
} else {
fabManager.hide();
}
});
return view;
}
private void initFab() {
fabManager.setFabEventCallback(new FabEventCallback() {
@Override
public void onClicked() {
logger.debug("Fab clicked");
}
@Override
public void onLongClicked() {
}
});
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
@ -133,8 +157,8 @@ public class WalletContentFragment extends Fragment {
@Override
public void onResume() {
super.onResume();
updateTotalReward();
fabManager.hide();
// updateTotalReward();
// fabManager.hide();
toolBarManager.setTitle("ウォレット");
toolBarManager.setSubtitle(null);
}