mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-17 19:29:02 +00:00
Overwriting home menu button in TaskFormActivity to be a back press instead to avoid recreating the TasksFragment. (#1296)
This commit is contained in:
parent
a95be4a755
commit
824f61fa4d
1 changed files with 4 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ class TaskFormActivity : BaseActivity() {
|
|||
when (item?.itemId) {
|
||||
R.id.action_save -> saveTask()
|
||||
R.id.action_delete -> deleteTask()
|
||||
android.R.id.home -> {
|
||||
onBackPressed()
|
||||
return true
|
||||
}
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue