Get back/home button up on map activity

This commit is contained in:
Doug Keen 2016-11-09 20:25:42 -08:00
parent ba11a82221
commit 589e1c0432

View File

@ -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);