aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;
+ }
}