From 2cf7ca569e50caa8d33d4045977d69d1f10771c2 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Fri, 20 Apr 2018 16:34:25 +0200 Subject: Added partially posting --- .../main/java/org/marcinzelent/liberavem/ObservationsFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java') diff --git a/app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java b/app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java index b093461..128cbe9 100644 --- a/app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java +++ b/app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java @@ -1,6 +1,7 @@ package org.marcinzelent.liberavem; import android.content.Context; +import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.Nullable; @@ -98,8 +99,8 @@ public class ObservationsFragment extends Fragment { fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - Snackbar.make(view, "Here's a Snackbar", Snackbar.LENGTH_LONG) - .setAction("Action", null).show(); + Intent intent = new Intent(getActivity(), NewObservationActivity.class); + startActivity(intent); } }); } -- cgit v1.2.3