mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Removed unneeded id.home menu handling
This commit is contained in:
parent
01c56824b7
commit
0da9be327a
1 changed files with 0 additions and 9 deletions
|
@ -19,7 +19,6 @@ package im.vector.app.features.spaces
|
|||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.view.MenuItem
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.airbnb.mvrx.Loading
|
||||
|
@ -65,14 +64,6 @@ class SpaceCreationActivity : SimpleFragmentActivity(), CreateSpaceViewModel.Fac
|
|||
}
|
||||
}
|
||||
|
||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
if (item.itemId == android.R.id.home) {
|
||||
onBackPressed()
|
||||
return true
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
||||
override fun initUiAndData() {
|
||||
super.initUiAndData()
|
||||
viewModel.subscribe(this) {
|
||||
|
|
Loading…
Reference in a new issue