mirror of
https://github.com/wismna/DoNext.git
synced 2025-10-03 07:30:13 -04:00
Adds back button on History activity
This commit is contained in:
@@ -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>
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user