Commit 73f886c2 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Don't go to parent activity when back button is pressed in action bar

parent 7bbc9f4b
Pipeline #178252 passed with stage
in 1 minute and 59 seconds
......@@ -9,6 +9,7 @@
package foundation.e.accountmanager.ui.setup
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import foundation.e.accountmanager.R
......@@ -23,4 +24,12 @@ class CreateAccountActivity : AppCompatActivity() {
commit()
}
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
if (item.itemId == android.R.id.home) {
finish()
return true
}
return false
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment