[FEATURE REQUEST] Review `avoidScreenshotsIfNeeded` usage

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Từ ngày 8/10/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin
Lĩnh vực
mobile

Hướng nghiên cứu

Start by locating every use of avoidScreenshotsIfNeeded and reviewing the dialogs where it is called, including remove-share and remove-member dialogs. Done means each use has been assessed and unnecessary calls are removed; add unit tests if needed and verify the resulting behavior with the stated QA test plan.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Estimation - 2 (S) Feature request Needs info Technical
fun Dialog.avoidScreenshotsIfNeeded() {
    if (!BuildConfig.DEBUG && context.resources?.getBoolean(R.bool.allow_screenshots) == false) {
        window?.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
    }

such method is used in several dialogs across the app. Some of them (like the remove share or remove member from space) do not seem to need to avoid screenshots

All the uses of the method should be reviewed to keep those that are really useful, and remove the ones that don't need avoidScreenshotsIfNeeded

TASKS
  • Research (if needed)
  • Create branch technical/remove_avoid_screenshots_method_from_dialogs
  • Development tasks
    • Implement whatever
    • ...
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch technical/remove_avoid_screenshots_method_from_dialogs into master
Ngôn ngữ chính
Kotlin
Star
4.2k
Fork
3.1k
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
16

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 owncloud/android

Tất cả issue của owncloud/android

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.