aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zelent <zelent.marcin@gmail.com>2018-04-23 17:19:58 +0200
committerMarcin Zelent <zelent.marcin@gmail.com>2018-04-23 17:19:58 +0200
commite2f49fe23b2ae1a910ab7015167e5ed9a5e4988a (patch)
treebbc450ed3480593480efcba5a5a58dcd63fa51c1 /app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java
parent2cf7ca569e50caa8d33d4045977d69d1f10771c2 (diff)
Added proper new observation layout with geolocation and bird choosing,
added swipe refreshing.
Diffstat (limited to 'app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java')
-rw-r--r--app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java b/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java
index 83e9c9a..373fda6 100644
--- a/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java
+++ b/app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java
@@ -3,6 +3,7 @@ package org.marcinzelent.liberavem;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
+import android.support.v7.widget.Toolbar;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
@@ -13,6 +14,7 @@ public class ObservationDetailsActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_observation_details);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
Intent intent = getIntent();
Observation observation = (Observation) intent.getSerializableExtra("Observation");
@@ -37,4 +39,10 @@ public class ObservationDetailsActivity extends AppCompatActivity {
TextView detailsComment = findViewById(R.id.details_comment);
if(observation.getComment() != null) detailsComment.setText(observation.getComment());
}
+
+ @Override
+ public boolean onSupportNavigateUp(){
+ finish();
+ return true;
+ }
}