From 589e1c043207784689ff8e98707d9ac7bf286d90 Mon Sep 17 00:00:00 2001 From: Doug Keen Date: Wed, 9 Nov 2016 20:25:42 -0800 Subject: [PATCH] Get back/home button up on map activity --- .../java/com/dougkeen/bart/activities/ViewMapActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/dougkeen/bart/activities/ViewMapActivity.java b/app/src/main/java/com/dougkeen/bart/activities/ViewMapActivity.java index 2a596f1..f53aefa 100644 --- a/app/src/main/java/com/dougkeen/bart/activities/ViewMapActivity.java +++ b/app/src/main/java/com/dougkeen/bart/activities/ViewMapActivity.java @@ -1,6 +1,7 @@ package com.dougkeen.bart.activities; import android.os.Bundle; +import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuInflater; @@ -9,6 +10,7 @@ import android.view.MenuItem; import com.davemorrissey.labs.subscaleview.ImageSource; import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView; import com.dougkeen.bart.R; +import com.dougkeen.util.Assert; public class ViewMapActivity extends AppCompatActivity { @@ -16,6 +18,9 @@ public class ViewMapActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + ActionBar supportActionBar = Assert.notNull(getSupportActionBar()); + supportActionBar.setHomeButtonEnabled(true); + supportActionBar.setDisplayHomeAsUpEnabled(true); SubsamplingScaleImageView photoView = new SubsamplingScaleImageView(this);