public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setHasOptionsMenu(true);
- Data.backgroundTasksRunning.observe(getViewLifecycleOwner(),
- this::onBackgroundTaskRunningChanged);
}
@Override
public void onAttach(@NotNull Context context) {
debug("flow", "TransactionListFragment.onActivityCreated called");
super.onActivityCreated(savedInstanceState);
+ Data.backgroundTasksRunning.observe(getViewLifecycleOwner(),
+ this::onBackgroundTaskRunningChanged);
+
swiper = mActivity.findViewById(R.id.transaction_swipe);
if (swiper == null)
throw new RuntimeException("Can't get hold on the swipe layout");