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

Commit 301469c3 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge branch '79-fix_actionbar_back' into 'master'

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

See merge request !35
parents 7bbc9f4b 73f886c2
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