aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@gmail.com>2018-04-20 16:34:25 +0200
committerMarcin Zelent <zelent.marcin@gmail.com>2018-04-20 16:34:25 +0200
commit2cf7ca569e50caa8d33d4045977d69d1f10771c2 (patch)
tree2339f4725e67b8c3fa4b68315d690084cd500fd0 /app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java
parente4fac53bb0e2a5234116caf8651e8d2c5a38a4f1 (diff)
Added partially posting
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java')
-rw-r--r--app/src/main/java/org/marcinzelent/liberavem/ObservationsFragment.java5
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);
}
});
}