Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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