From b7f58cfb6e832cb4fdfbfaf59a134ac383ff7487 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 4 Sep 2020 11:47:50 +0530 Subject: Remove BaseGitActivity's onOptionsItemSelected override (#1075) Each activity that inherits from it should handle its own navigation Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/git/BaseGitActivity.kt | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'app/src') 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 -- cgit v1.2.3