mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-02 15:25:39 +00:00
Address GitOperationActivity regressions (#824)
This commit is contained in:
@@ -20,6 +20,7 @@ import org.eclipse.jgit.api.PushCommand
|
|||||||
import org.eclipse.jgit.api.RebaseResult
|
import org.eclipse.jgit.api.RebaseResult
|
||||||
import org.eclipse.jgit.api.StatusCommand
|
import org.eclipse.jgit.api.StatusCommand
|
||||||
import org.eclipse.jgit.transport.RemoteRefUpdate
|
import org.eclipse.jgit.transport.RemoteRefUpdate
|
||||||
|
import org.eclipse.jgit.transport.SshSessionFactory
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.lang.ref.WeakReference
|
import java.lang.ref.WeakReference
|
||||||
|
|
||||||
@@ -133,7 +134,6 @@ class GitAsyncTask(
|
|||||||
operation.onError(rootCauseException(result.err))
|
operation.onError(rootCauseException(result.err))
|
||||||
if (finishWithResultOnEnd != null) {
|
if (finishWithResultOnEnd != null) {
|
||||||
activity?.setResult(Activity.RESULT_CANCELED)
|
activity?.setResult(Activity.RESULT_CANCELED)
|
||||||
activity?.finish()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Result.Ok -> {
|
is Result.Ok -> {
|
||||||
@@ -147,6 +147,7 @@ class GitAsyncTask(
|
|||||||
if (refreshListOnEnd) {
|
if (refreshListOnEnd) {
|
||||||
(activity as? PasswordStore)?.resetPasswordList()
|
(activity as? PasswordStore)?.resetPasswordList()
|
||||||
}
|
}
|
||||||
|
SshSessionFactory.setInstance(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user