summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-09-04 11:47:50 +0530
committerGitHub <noreply@github.com>2020-09-04 11:47:50 +0530
commitb7f58cfb6e832cb4fdfbfaf59a134ac383ff7487 (patch)
tree9f9b3e671fba3fd0e2c863db102fa66738ad3132
parent3840f43fa0026b06b15913379761c1bf6b6a1c68 (diff)
Remove BaseGitActivity's onOptionsItemSelected override (#1075)
Each activity that inherits from it should handle its own navigation Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt b/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt
index e16b0c8b..7e9b1496 100644
--- a/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt
@@ -4,7 +4,6 @@
*/
package com.zeapo.pwdstore.git
-import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.edit
import com.github.ajalt.timberkt.Timber.tag
@@ -35,16 +34,6 @@ import net.schmizz.sshj.userauth.UserAuthException
*/
abstract class BaseGitActivity : AppCompatActivity() {
- override fun onOptionsItemSelected(item: MenuItem): Boolean {
- return when (item.itemId) {
- android.R.id.home -> {
- finish()
- true
- }
- else -> super.onOptionsItemSelected(item)
- }
- }
-
/**
* Attempt to launch the requested Git operation.
* @param operation The type of git operation to launch