Get back/home button up on map activity
This commit is contained in:
parent
ba11a82221
commit
589e1c0432
@ -1,6 +1,7 @@
|
|||||||
package com.dougkeen.bart.activities;
|
package com.dougkeen.bart.activities;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.support.v7.app.ActionBar;
|
||||||
import android.support.v7.app.AppCompatActivity;
|
import android.support.v7.app.AppCompatActivity;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
@ -9,6 +10,7 @@ import android.view.MenuItem;
|
|||||||
import com.davemorrissey.labs.subscaleview.ImageSource;
|
import com.davemorrissey.labs.subscaleview.ImageSource;
|
||||||
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
|
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;
|
||||||
import com.dougkeen.bart.R;
|
import com.dougkeen.bart.R;
|
||||||
|
import com.dougkeen.util.Assert;
|
||||||
|
|
||||||
|
|
||||||
public class ViewMapActivity extends AppCompatActivity {
|
public class ViewMapActivity extends AppCompatActivity {
|
||||||
@ -16,6 +18,9 @@ public class ViewMapActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
ActionBar supportActionBar = Assert.notNull(getSupportActionBar());
|
||||||
|
supportActionBar.setHomeButtonEnabled(true);
|
||||||
|
supportActionBar.setDisplayHomeAsUpEnabled(true);
|
||||||
|
|
||||||
SubsamplingScaleImageView photoView = new SubsamplingScaleImageView(this);
|
SubsamplingScaleImageView photoView = new SubsamplingScaleImageView(this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user