diff options
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java')
-rw-r--r-- | app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
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); } }); } |