Fix up navigation on MarkdownInfoActivity

This commit is contained in:
William Brawner 2018-10-01 17:53:19 -05:00 committed by William Brawner
parent 987b5c1785
commit 002248551b

View file

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