From e2f49fe23b2ae1a910ab7015167e5ed9a5e4988a Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Mon, 23 Apr 2018 17:19:58 +0200 Subject: Added proper new observation layout with geolocation and bird choosing, added swipe refreshing. --- .../org/marcinzelent/liberavem/ObservationDetailsActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/src/main/java/org/marcinzelent/liberavem/ObservationDetailsActivity.java') 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; + } } -- cgit v1.2.3