fix wrong activity transition of LoginActivity

This commit is contained in:
Konrad Pozniak 2018-08-18 13:03:30 +02:00
parent 7442f5bca8
commit 322a567e52
1 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,13 @@ class LoginActivity : AppCompatActivity(), Injectable {
}
override fun finish() {
super.finish()
if(isAdditionalLogin()) {
overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right)
}
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
if (item.itemId == android.R.id.home) {
onBackPressed()