Pull to refresh doesn't work when there are no tasks

Đang mở
#916 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

@AnirudhPudari đang làm issue này rồi.

Từ ngày 5/6/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Steps to repro:

  • Load app, delete any existing tasks so that "You have no tasks!" is displayed
  • swipe vertically downwards

Expected outcome

  • The loading spinner is displayed

Actual outcome

  • Nothing happens

Further details:

Pull to refresh is implemented in the LoadingContent composable. This either displays empty content or if it is non empty (specified by the logic tasks.isEmpty() && !loading) a container which supports pull to refresh.

So the problem is that the empty content should be displayed inside a container which supports pull to refresh.

Additionally the code is currently using SwipeRefresh from the accompanist library which is deprecated and needs migrating https://google.github.io/accompanist/swiperefresh/#migration

Ngôn ngữ chính
Kotlin
Star
45.9k
Fork
11.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của android/architecture-samples

Tất cả issue của android/architecture-samples

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.