WIP
This commit is contained in:
parent
f2c4e43b98
commit
4ba2677a15
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user