Fix up navigation on MarkdownInfoActivity
This commit is contained in:
parent
987b5c1785
commit
002248551b
1 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue