diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MarkdownInfoActivity.java b/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MarkdownInfoActivity.java index 43b96db..0eec104 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MarkdownInfoActivity.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/view/activity/MarkdownInfoActivity.java @@ -1,9 +1,10 @@ package com.wbrawner.simplemarkdown.view.activity; import android.content.Intent; +import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; -import android.os.Bundle; +import android.view.MenuItem; import android.webkit.WebView; import com.wbrawner.simplemarkdown.R; @@ -40,4 +41,14 @@ public class MarkdownInfoActivity extends AppCompatActivity { null ); } + + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() == android.R.id.home) { + onBackPressed(); + return true; + } + return super.onOptionsItemSelected(item); + } }