Skip to content

Commit

Permalink
fix: login bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BatLeDev committed Jun 8, 2024
1 parent 8b875d0 commit fea485d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/com/batledev/bluetask/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ class MainActivity : AppCompatActivity() {
for (document in documents) {
val taskId = document.id
val task = document.toObject<Task>().copy(id = taskId)
println(task)
tasks.add(task)
}
swipeRefreshLayout.isRefreshing = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ object TaskUtils {
"labels" to emptyList<String>(),
"createdAt" to FieldValue.serverTimestamp()
)
userDoc.set(user)
userDoc.set(user).addOnSuccessListener { _ ->
updateUI(activity, currentUser)}
} else {
updateUI(activity, currentUser)
}
}
updateUI(activity, currentUser)
} else {
Toast.makeText(
activity,
Expand Down

0 comments on commit fea485d

Please sign in to comment.