Skip to content

Commit

Permalink
#1348 - crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
budowski committed Sep 23, 2024
1 parent 7bdb672 commit eba8cf6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,10 @@ public Object instantiateItem(@NotNull ViewGroup collection, int position) {

OnItemClickListener onIdentificationsClick = (adapterView, view, i, l) -> {
JSONObject item = (JSONObject) view.getTag();
if (item == null) {
return;
}

Intent intent = new Intent(ObservationListActivity.this, ObservationViewerSlider.class);
intent.putExtra("observation", item.optJSONObject("observation").toString());
intent.putExtra("read_only", true);
Expand Down

0 comments on commit eba8cf6

Please sign in to comment.