@Override
- public void onActivityCreated(@Nullable Bundle savedInstanceState) {
+ public void onViewCreated(@Nullable View view, @Nullable Bundle savedInstanceState) {
debug("flow", "AccountSummaryFragment.onActivityCreated()");
- super.onActivityCreated(savedInstanceState);
+ super.onViewCreated(view, savedInstanceState);
MainModel model = new ViewModelProvider(requireActivity()).get(MainModel.class);
}
@Override
- public void onActivityCreated(@Nullable Bundle savedInstanceState) {
- super.onActivityCreated(savedInstanceState);
+ public void onViewCreated(@NotNull View view, @Nullable Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
FragmentActivity activity = getActivity();
if (activity == null)
throw new RSInvalidStateException(
});
}
@Override
- public void onActivityCreated(@Nullable Bundle savedInstanceState) {
- super.onActivityCreated(savedInstanceState);
+ public void onViewCreated(@NotNull View view, @Nullable Bundle savedInstanceState) {
+ super.onViewCreated(view, savedInstanceState);
Activity context = getActivity();
if (context == null)
return;
debug("flow", "TransactionListFragment.onPause()");
}
@Override
- public void onActivityCreated(@Nullable Bundle savedInstanceState) {
+ public void onViewCreated(@NotNull View view, @Nullable Bundle savedInstanceState) {
debug("flow", "TransactionListFragment.onActivityCreated called");
- super.onActivityCreated(savedInstanceState);
+ super.onViewCreated(view, savedInstanceState);
Data.backgroundTasksRunning.observe(getViewLifecycleOwner(),
this::onBackgroundTaskRunningChanged);
accNameFilter = mainActivity.findViewById(R.id.transaction_filter_account_name);
MLDB.hookAutocompletionAdapter(mainActivity, accNameFilter, "accounts", "name");
- accNameFilter.setOnItemClickListener((parent, view, position, id) -> {
+ accNameFilter.setOnItemClickListener((parent, v, position, id) -> {
// debug("tmp", "direct onItemClick");
Cursor c = (Cursor) parent.getItemAtPosition(position);
model.getAccountFilter()