Adds back button on History activity

This commit is contained in:
BONNEVILLE Geoffroy
2017-12-22 11:36:33 +01:00
parent a8f0a80363
commit 6dce3a6262
2 changed files with 7 additions and 1 deletions

View File

@@ -22,7 +22,6 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

View File

@@ -1,6 +1,7 @@
package com.wismna.geoffroy.donext.activities;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import com.wismna.geoffroy.donext.R;
@@ -15,5 +16,11 @@ public class HistoryActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_history);
ActionBar toolbar = getSupportActionBar();
// Show back button on toolbar
assert toolbar != null;
toolbar.setDisplayHomeAsUpEnabled(true);
toolbar.setDisplayShowHomeEnabled(true);
}
}