From a34f749e9ac1d6112a42b0f4ded3ae801d8c583c Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 14 Sep 2020 22:37:22 +0530 Subject: Add tentative workaround for dialog crashes and refactor Git-related code (#1100) * Ensure we're creating dialogs on the main thread Signed-off-by: Harsh Shandilya * Remove unused operation type Signed-off-by: Harsh Shandilya * Refactor launchGitOperation to use an enum Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/git/operation') diff --git a/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt b/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt index 85c38c6a..d7ff7c4c 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt +++ b/app/src/main/java/com/zeapo/pwdstore/git/operation/GitOperation.kt @@ -202,9 +202,4 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) { sshSessionFactory?.close() } } - - companion object { - - const val GET_SSH_KEY_FROM_CLONE = 201 - } } -- cgit v1.2.3