Statistics button works

This commit is contained in:
RemoMeijer
2021-01-05 13:18:25 +01:00
parent bc8b83e4f6
commit aae67f53ec
2 changed files with 10 additions and 1 deletions

View File

@@ -41,6 +41,12 @@ public class StatisticFragment extends Fragment {
TextView couponNumber = view.findViewById(R.id.couponAmount);
couponNumber.setText(String.valueOf(adapter.getItemCount()));
this.imageButton = view.findViewById(R.id.route_back_button);
this.imageButton.setOnClickListener(v -> {
HomeFragment homeFragment = new HomeFragment();
((FragmentActivity) view.getContext()).getSupportFragmentManager().beginTransaction().replace(R.id.fragment_layout, homeFragment).addToBackStack(null).commit();
});
ConstraintLayout constraintLayout = view.findViewById(R.id.Box4);
constraintLayout.setOnClickListener(v -> {