aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2018-04-25 11:25:27 +0200
committermarcinzelent <zelent.marcin@gmail.com>2018-04-25 11:25:27 +0200
commit3812f6ccf9d5796f25f81aeea942c25b58296d01 (patch)
tree29980d6d0fe24b8c4723aa14279a91919837ba3b /app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java
parente2f49fe23b2ae1a910ab7015167e5ed9a5e4988a (diff)
Fixed crash on reload of observations view
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java')
-rw-r--r--app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java b/app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java
index af4331a..b54227c 100644
--- a/app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java
+++ b/app/src/main/java/org/marcinzelent/liberavem/AllObservationsFragment.java
@@ -39,7 +39,6 @@ public class AllObservationsFragment extends Fragment {
// Required empty public constructor
}
-
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.observations_list, container, false);
@@ -60,6 +59,7 @@ public class AllObservationsFragment extends Fragment {
}
);
+ DataKeeper.getInstance().addFragment(this);
DataKeeper.getInstance().downloadData(getActivity());
}