Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
AccountManager
Commits
73f886c2
Commit
73f886c2
authored
Apr 14, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/accountmanager/ui/setup/CreateAccountActivity.kt
View file @
73f886c2
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment