summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorglowinthedark <48893368+glowinthedark@users.noreply.github.com>2020-03-01 16:35:11 +0100
committerGitHub <noreply@github.com>2020-03-01 21:05:11 +0530
commitaddefdc9a3eac4124d304ee4f810daaeed419996 (patch)
tree1a1a7d51f441961e27abac18118a7726741bc384 /app
parent09005f804335ee86fdcedd50221f1bb5984646da (diff)
Swipe2refresh fix (#647)
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt
index 744191b7..56018995 100644
--- a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt
@@ -4,7 +4,6 @@
*/
package com.zeapo.pwdstore
-import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
@@ -146,11 +145,7 @@ class PasswordFragment : Fragment() {
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
- if (resultCode == Activity.RESULT_OK) {
- when (requestCode) {
- GitActivity.REQUEST_SYNC -> swipe_refresher.isRefreshing = false
- }
- }
+ swipe_refresher.isRefreshing = false
}
/** clears the adapter content and sets it back to the root view */