}
@Override
-
- public void onViewCreated(@Nullable View view, @Nullable Bundle savedInstanceState) {
+ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
debug("flow", "AccountSummaryFragment.onActivityCreated()");
super.onViewCreated(view, savedInstanceState);
modelAdapter = new AccountSummaryAdapter(model);
MainActivity mainActivity = getMainActivity();
- root = mainActivity.findViewById(R.id.account_root);
+ root = view.findViewById(R.id.account_root);
LinearLayoutManager llm = new LinearLayoutManager(mainActivity);
llm.setOrientation(RecyclerView.VERTICAL);
root.setLayoutManager(llm);
manageFabOnScroll();
- refreshLayout = mainActivity.findViewById(R.id.account_swipe_refresh_layout);
+ refreshLayout = view.findViewById(R.id.account_swipe_refresh_layout);
Colors.themeWatch.observe(getViewLifecycleOwner(), this::themeChanged);
refreshLayout.setOnRefreshListener(() -> {
debug("ui", "refreshing accounts via swipe");