Add Android Bench sample: tasks and runs (part 2)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+6
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/functional.jsonAdded+309
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/gate.jsonAdded+7
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/requirements.jsonAdded+82
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/tests.jsonAdded+6
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/visual.jsonAdded+85
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/claude-code.txtAdded+3
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/.claude.jsonAdded+24
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/.last-cleanupAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/backups/.claude.json.backup.1792577406784Added+4
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec.jsonlAdded+3
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a4fc5fa27db62f834.jsonlAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a4fc5fa27db62f834.meta.jsonAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a7312b77b6711251e.jsonlAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a7312b77b6711251e.meta.jsonAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/b0ai7c0ya.txtAdded+1338
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/b1y9oc321.txtAdded+1338
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/b60plc6wx.txtAdded+770
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/btxi1cjsi.txtAdded+825
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/bx8x64wf0.txtAdded+754
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/memory/MEMORY.mdAdded+2
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/memory/lint-baseline-ci-paths.mdAdded+19
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/memory/robolectric-test-environment.mdAdded+26
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/trajectory.jsonAdded+3
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/artifacts/manifest.jsonAdded+10
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/config.jsonAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/result.jsonAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/generated/logs/artifacts/_detailed_scores.jsonAdded+251
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/generated/logs/artifacts/_submission.patchAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/generated/logs/artifacts/emulator_process_bench.logAdded+121
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/manifest.jsonAdded+11
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleCoreDebug.logAdded+109
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleCoreRelease.logAdded+115
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleFossRelease.logAdded+115
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleGplayDebug.logAdded+109
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleGplayRelease.logAdded+115
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/code_quality.jsonAdded+5
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/crash.logAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/detailed_scores.jsonAdded+251
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/detekt.logAdded+26
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/emulator.logAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/evaluator.logAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/lint.logAdded+66
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/prefetch-1.logAdded+26
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/reward.txtAdded+1
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_extract_to_chosen_folder.pngAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_folder_survives_rotation.pngAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_lists_entries.pngAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_password.pngAdded
- submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_walk_into_folders_and_back.pngAdded
66 unmodified lines67686970717273747566 unmodified linessubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/agent/sessions/projects/-workspace-testbed/d8d5bd2c-49ae-415d-bafc-7ee6e7f61ce7.jsonl filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/agent/trajectory.json filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec.jsonl filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/trajectory.json filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-d965e0aa-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-d965e0aa-1/agent/sessions/projects/-workspace-testbed/f114f6e6-624a-4c08-bf59-e6456f58f96b.jsonl filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-d965e0aa-1/agent/trajectory.json filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309{ "checks": [ { "id": "update_keeps_settings", "weight": 4, "score": 1.0, "detail": "flipped ['Keep old last-modified value at file operations', 'Always skip delete confirmation dialog', 'Enable pull-to-refresh from the top'], font Small: all shown as stored" }, { "id": "files_browse_and_breadcrumbs", "weight": 3, "score": 1.0, "detail": "listing ok=True deep=True breadcrumb_up=True" }, { "id": "files_sort_by_size_descending", "weight": 2, "score": 1.0, "detail": "size-descending order shown=['f4_213.txt', 'f2_879.txt', 'f5_163.txt', 'f3_572.txt'] expected=['f4_213.txt', 'f2_879.txt', 'f5_163.txt', 'f3_572.txt']" }, { "id": "files_temporarily_show_hidden", "weight": 2, "score": 1.0, "detail": "hidden before=False shown after \"Temporarily show hidden\"=True \"Stop showing hidden\" offered and done=True list showing=True hidden again=True" }, { "id": "files_search_finds_nested_files", "weight": 2, "score": 1.0, "detail": "search finds a file two folders down" }, { "id": "files_search_highlights_query", "weight": 2, "score": 1.0, "detail": "highlighted pixels in \"f3_572.txt\": as a result for \"f3_572\"=824 (needs 400), listed=0; result background (254, 251, 255) text (0, 25, 69) highlight (122, 144, 200)" }, { "id": "files_selection_rename", "weight": 2, "score": 1.0, "detail": "renamed on disk=True shown=True; other entries missing=[] item counts shown={'charlie72': 1, 'long': 40} on disk={'charlie72': 1, 'long': 40} hidden file shown=False" }, { "id": "files_selection_copy_to_folder", "weight": 2, "score": 1.0, "detail": "copied=True original kept=True" }, { "id": "files_selection_delete", "weight": 2, "score": 1.0, "detail": "confirmation=True deleted=True gone from list=True" }, { "id": "files_selection_move_to_folder", "weight": 2, "score": 1.0, "detail": "in the target folder=True removed from here=True gone from list=True" }, { "id": "files_folder_item_counts", "weight": 2, "score": 1.0, "detail": "item counts shown={'charlie72': 3, 'long': 40, 'turn43': 2} on disk={'charlie72': 3, 'long': 40, 'turn43': 2}" }, { "id": "files_selection_compress", "weight": 2, "score": 1.0, "detail": "f3_572.zip holds the file=True (['f3_572.txt']) shown=True" }, { "id": "files_selection_share", "weight": 1, "score": 1.0, "detail": "system share sheet opened: com.android.intentresolver/com.android.intentresolver.ChooserActivityLauncher" }, { "id": "files_selection_properties", "weight": 1, "score": 1.0, "detail": "dialog=True name=True path=True size=True" }, { "id": "files_create_new_folder", "weight": 2, "score": 1.0, "detail": "created=True shown=True" }, { "id": "files_create_new_file", "weight": 2, "score": 1.0, "detail": "file created=True shown=True" }, { "id": "files_grid_and_list_view", "weight": 2, "score": 1.0, "detail": "list at first=True (11 names) grid after switching=True (11 names) list again=True (11 names)" }, { "id": "files_pull_to_refresh_shows_external_changes", "weight": 1, "score": 1.0, "detail": "file created outside the app appears after pull-to-refresh" }, { "id": "files_folder_restored_after_process_death", "weight": 2, "score": 1.0, "detail": "process killed=True same folder on return=True" }, { "id": "settings_rows_complete", "weight": 3, "score": 1.0, "detail": "all rows and section headers present, conditional rows hidden" }, { "id": "settings_switches_show_and_store_values", "weight": 4, "score": 1.0, "detail": "every switch reflects and writes its stored value" }, { "id": "font_size_dialog", "weight": 2, "score": 1.0, "detail": "['Medium'] -> Extra large: row and stored value updated" }, { "id": "settings_dialogs_and_links", "weight": 3, "score": 1.0, "detail": "{\"tabs\": true, \"date\": true, \"security\": true, \"customize\": true, \"favorites\": true}" }, { "id": "favorites_empty_state", "weight": 2, "score": 1.0, "detail": "empty-state text and its add action shown" }, { "id": "favorites_add", "weight": 3, "score": 1.0, "detail": "added ['Movies', 'Pictures'], stored ['/storage/emulated/0/Movies', '/storage/emulated/0/Pictures']" }, { "id": "favorites_remove_by_selection", "weight": 2, "score": 1.0, "detail": "long-press selection + Remove deleted it" }, { "id": "favorites_remove_from_row_menu", "weight": 2, "score": 1.0, "detail": "removed=True empty_state_again=True" }, { "id": "editor_opens_file", "weight": 3, "score": 1.0, "detail": "title=True content_shown=True" }, { "id": "editor_search_bar", "weight": 2, "score": 1.0, "detail": "query typed=True prev/next/close=True text_untouched=True closed=True" }, { "id": "editor_menu_entries", "weight": 1, "score": 1.0, "detail": "search, save, save as, print and open with are offered" }, { "id": "editor_edit_survives_rotation", "weight": 3, "score": 1.0, "detail": "unsaved edit kept in landscape=True and back in portrait=True" }, { "id": "editor_search_survives_rotation", "weight": 2, "score": 1.0, "detail": "open with the query before=True in landscape=True back in portrait=True" }, { "id": "editor_unsaved_prompt_discard", "weight": 2, "score": 1.0, "detail": "prompt=True closed=True file_unchanged=True" }, { "id": "editor_save_in_place", "weight": 3, "score": 1.0, "detail": "written to the file=True, no unsaved prompt afterwards=True" }, { "id": "editor_unsaved_prompt_save", "weight": 2, "score": 1.0, "detail": "saved=True closed=True" }, { "id": "editor_save_as", "weight": 2, "score": 1.0, "detail": "copy216.txt written with the edited text" }, { "id": "editor_opens_from_other_apps", "weight": 1, "score": 1.0, "detail": "VIEW intent from another app opens the editor" }, { "id": "archive_lists_entries", "weight": 2, "score": 1.0, "detail": "title + top-level folder and file listed" }, { "id": "archive_walk_into_folders_and_back", "weight": 2, "score": 1.0, "detail": "docs=True inner=True back=True back_to_root=True" }, { "id": "archive_folder_survives_rotation", "weight": 2, "score": 1.0, "detail": "still inside docs after rotation=True and back=True" }, { "id": "archive_extract_to_chosen_folder", "weight": 3, "score": 1.0, "detail": "extracted into /sdcard/Documents/arch40" }, { "id": "archive_password", "weight": 3, "score": 1.0, "detail": "wrong password rejected=True right password opens=True" }, { "id": "editor_edit_survives_process_death", "weight": 3, "score": 1.0, "detail": "process killed=True unsaved edit restored=True (not silently saved=True)" }, { "id": "main_screen_unchanged", "weight": 2, "score": 1.0, "detail": "tabs=True browse=True storage_tab=True" }, { "id": "no_crash_recorded", "weight": 3, "score": 1.0, "detail": "crash buffer clean" } ], "navigation": { "overlay": "com.android.internal.systemui.navbar.threebutton", "navbar_overlays": [ "[x] com.android.internal.systemui.navbar.threebutton", "[ ] com.android.internal.systemui.navbar.twobutton", "[ ] com.android.internal.systemui.navbar.transparent", "[ ] com.android.internal.systemui.navbar.gestural" ], "navigation_mode": "0", "navigation_bar_top": 2274, "ok": true, "waited_s": 2 }, "score": 1.0, "emulator_unhealthy": false, "state": { "needle": "ember863", "txt": "notes56.txt", "deep_token": "deep8294", "zip": "arch40.zip", "szip": "locked31.zip", "password": "pw27109", "update_flips": [ "Keep old last-modified value at file operations", "Always skip delete confirmation dialog", "Enable pull-to-refresh from the top" ], "update_font": "Small", "installed": true, "fav_folders": [ "Movies", "Pictures" ], "rot_token": "rot9880" }}1234567{ "build_ok": true, "flavors_ok": 5, "flavors_total": 5, "detekt_ok": true, "lint_ok": true}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ "score": 1.0, "checks": [ { "id": "old_views_removed", "weight": 3, "score": 1.0, "detail": "XML layouts, toolbar menus and adapters of the four screens are gone", "evidence": [] }, { "id": "screens_drawn_by_compose", "weight": 5, "score": 1.0, "detail": "5/5 screens are Compose-only: {'settings': 'ok', 'favorites': 'ok', 'editor': 'ok', 'archive': 'ok', 'files': 'ok'}", "evidence": [ "settings: ok", "favorites: ok", "editor: ok", "archive: ok", "files: ok" ] }, { "id": "uses_fossify_compose_blocks", "weight": 2, "score": 1.0, "detail": "commons compose theme used=True, commons settings components used=True", "evidence": [] }, { "id": "compose_ui_tests_for_each_screen", "weight": 2, "score": 1.0, "detail": "11 Compose UI test files, 46 test cases, screens covered: ['settings', 'favorites', 'editor', 'archive', 'files']", "evidence": [ "app/src/test/kotlin/org/fossify/filemanager/DecompressActivityTest.kt", "app/src/test/kotlin/org/fossify/filemanager/DecompressScreenTest.kt", "app/src/test/kotlin/org/fossify/filemanager/FilesTabTest.kt", "app/src/test/kotlin/org/fossify/filemanager/SettingsActivityTest.kt", "app/src/test/kotlin/org/fossify/filemanager/ReadTextActivityTest.kt", "app/src/test/kotlin/org/fossify/filemanager/MainActivityFilesTabTest.kt", "app/src/test/kotlin/org/fossify/filemanager/ReadTextScreenTest.kt", "app/src/test/kotlin/org/fossify/filemanager/SettingsScreenTest.kt", "app/src/test/kotlin/org/fossify/filemanager/TestUtils.kt", "app/src/test/kotlin/org/fossify/filemanager/FavoritesActivityTest.kt", "app/src/test/kotlin/org/fossify/filemanager/FavoritesScreenTest.kt" ] }, { "id": "lint_and_detekt_not_loosened", "weight": 2, "score": 1.0, "detail": "configs and baselines unchanged", "evidence": [] }, { "id": "app_id_and_sdk_levels_unchanged", "weight": 1, "score": 1.0, "detail": "{'package: name': 'org.fossify.filemanager.debug', 'minSdkVersion': '26', 'targetSdkVersion': '36'} vs {'package: name': 'org.fossify.filemanager.debug', 'minSdkVersion': '26', 'targetSdkVersion': '36'}", "evidence": [] }, { "id": "existing_dependency_versions_unchanged", "weight": 2, "score": 1.0, "detail": "release runtime classpath: 182 of the start commit's 182 artifacts compared, 0 changed", "evidence": [] } ], "screens": { "settings": "ok", "favorites": "ok", "editor": "ok", "archive": "ok", "files": "ok" }, "cheating": { "prebuilt_binaries": [] }}123456{ "total": 59, "passed": 59, "failed": [], "failures": {}}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ "installed": true, "taken": [ "files_list", "files_selection", "settings", "favorites_empty", "editor", "archive" ], "errors": {}, "system_bars": { "waited_s": 0, "systemui_restarted": false, "palette": { "theme_setting": "{\"android.theme.customization.color_source\":\"preset\",\"android.theme.customization.system_palette\":\"7A90C8\",\"android.theme.customization.theme_style\":\"TONAL_SPOT\"}", "system_colours": { "system_accent1_100": "ffd9e2ff", "system_accent1_400": "ff7a90c8", "system_accent1_600": "ff475d92", "system_accent1_900": "ff001945", "system_neutral1_10": "fffefbff", "system_neutral1_900": "ff1a1b20" }, "ok": true, "system_colours_before": { "system_accent1_100": "ffdae2ff", "system_accent1_400": "ff7c8fc8", "system_accent1_600": "ff495d92", "system_accent1_900": "ff001849", "system_neutral1_10": "fffefbff", "system_neutral1_900": "ff1a1b21" }, "systemui_overlays": [ "[ ] com.android.systemui:neutral", "[ ] com.android.systemui:accent", "[ ] com.android.systemui:dynamic" ], "waited_s": 2 }, "navigation": { "overlay": "com.android.internal.systemui.navbar.threebutton", "navbar_overlays": [ "[x] com.android.internal.systemui.navbar.threebutton", "[ ] com.android.internal.systemui.navbar.twobutton", "[ ] com.android.internal.systemui.navbar.transparent", "[ ] com.android.internal.systemui.navbar.gestural" ], "navigation_mode": "0", "navigation_bar_top": 2274, "ok": true, "waited_s": 2 }, "cutout_top": 128, "status_bar_before": 128, "status_bar_after": 128, "sysui_demo_allowed": "1", "systemui_pid": "1089", "soft_keyboard": { "input_methods": [ "com.google.android.tts/com.google.android.apps.speech.tts.googletts.settings.asr.voiceime.VoiceInputMethodService", "com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME" ], "enabled_after": [], "bound_after": null } }, "screen_colours": { "background": [ 254, 251, 255 ], "text": [ 0, 25, 69 ], "accent": [ 122, 144, 200 ] }}123version https://git-lfs.github.com/spec/v1oid sha256:e547e13c297c624e0957decd7f07dbf963f938da3c5e4e7a7bb4b79438938186size 28846355123456789101112131415161718192021222324{ "firstStartTime": "2026-10-21T10:10:06.772Z", "firstStartVersion": "2.1.287", "machineID": "0a52e73a75f70fd242bf59d0484e970e554e665c0cdb87a051258c2d49432a48", "opusProMigrationComplete": true, "sonnet1m45MigrationComplete": true, "seenNotifications": {}, "hasResetAutoModeOptInForDefaultOffer": true, "migrationVersion": 14, "userID": "2099691f73939b64178936255192376480ed211e730358a605f71d4d8aaaa7dc", "pluginUsage": { "cc-plugin-agents-md@builtin": { "usageCount": 0, "lastUsedAt": 1792577406903, "lastUsedNumStartups": 0 }, "cc-plugin-plugin-authoring@builtin": { "usageCount": 0, "lastUsedAt": 1792577406903, "lastUsedNumStartups": 0 } }, "cachedExtraUsageDisabledReason": null}12026-10-21T10:10:11.925Z1234{ "firstStartTime": "2026-10-21T10:10:06.772Z", "firstStartVersion": "2.1.287"}123version https://git-lfs.github.com/spec/v1oid sha256:badf4ffdbb9c7a802673a41ab4f737144bdd545e66125f698b76193a25daf93fsize 265597281{"agentType":"general-purpose","description":"Review Files tab parity","toolUseId":"toolu_01LGTPVGmywSrMCkdukHPQGX","spawnDepth":1,"requestShape":"background","requestNonInteractive":true}1{"agentType":"general-purpose","description":"Review other four screens","toolUseId":"toolu_01K8MEhev1S1RHv7yHjjNQkT","spawnDepth":1,"requestShape":"background","requestNonInteractive":true}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338 1 package org.fossify.filemanager.adapters 2 3 import android.annotation.SuppressLint 4 import android.content.Intent 5 import android.content.pm.PackageManager 6 import android.content.pm.ShortcutInfo 7 import android.content.pm.ShortcutManager 8 import android.graphics.drawable.Drawable 9 import android.graphics.drawable.Icon 10 import android.graphics.drawable.LayerDrawable 11 import android.net.Uri 12 import android.util.TypedValue 13 import android.view.LayoutInflater 14 import android.view.Menu 15 import android.view.View 16 import android.view.ViewGroup 17 import android.widget.FrameLayout 18 import android.widget.ImageView 19 import android.widget.TextView 20 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout 21 import androidx.viewbinding.ViewBinding 22 import com.bumptech.glide.Glide 23 import com.bumptech.glide.load.DecodeFormat 24 import com.bumptech.glide.load.engine.DiskCacheStrategy 25 import com.bumptech.glide.load.resource.bitmap.CenterCrop 26 import com.bumptech.glide.load.resource.bitmap.RoundedCorners 27 import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions 28 import com.bumptech.glide.request.RequestOptions 29 import com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller 30 import com.stericson.RootTools.RootTools 31 import net.lingala.zip4j.exception.ZipException 32 import net.lingala.zip4j.io.inputstream.ZipInputStream 33 import net.lingala.zip4j.io.outputstream.ZipOutputStream 34 import net.lingala.zip4j.model.LocalFileHeader 35 import net.lingala.zip4j.model.ZipParameters 36 import net.lingala.zip4j.model.enums.EncryptionMethod 37 import org.fossify.commons.adapters.MyRecyclerViewAdapter 38 import org.fossify.commons.dialogs.ConfirmationDialog 39 import org.fossify.commons.dialogs.FilePickerDialog 40 import org.fossify.commons.dialogs.PropertiesDialog 41 import org.fossify.commons.dialogs.RadioGroupDialog 42 import org.fossify.commons.dialogs.RenameDialog 43 import org.fossify.commons.dialogs.RenameItemDialog 44 import org.fossify.commons.dialogs.RenameItemsDialog 45 import org.fossify.commons.extensions.applyColorFilter 46 import org.fossify.commons.extensions.beGone 47 import org.fossify.commons.extensions.beVisible 48 import org.fossify.commons.extensions.beVisibleIf 49 import org.fossify.commons.extensions.convertToBitmap 50 import org.fossify.commons.extensions.copyToClipboard 51 import org.fossify.commons.extensions.createDirectorySync 52 import org.fossify.commons.extensions.deleteFile 53 import org.fossify.commons.extensions.deleteFileBg 54 import org.fossify.commons.extensions.deleteFolderBg 55 import org.fossify.commons.extensions.formatDate 56 import org.fossify.commons.extensions.formatSize 57 import org.fossify.commons.extensions.getAndroidSAFFileItems 58 import org.fossify.commons.extensions.getAndroidSAFUri 59 import org.fossify.commons.extensions.getColoredDrawableWithColor 60 import org.fossify.commons.extensions.getDefaultCopyDestinationPath 61 import org.fossify.commons.extensions.getDocumentFile 62 import org.fossify.commons.extensions.getDoesFilePathExist 63 import org.fossify.commons.extensions.getFileCount 64 import org.fossify.commons.extensions.getFileInputStreamSync 65 import org.fossify.commons.extensions.getFileOutputStreamSync 66 import org.fossify.commons.extensions.getFilenameFromPath 67 import org.fossify.commons.extensions.getIsPathDirectory 68 import org.fossify.commons.extensions.getMimeType 69 import org.fossify.commons.extensions.getParentPath 70 import org.fossify.commons.extensions.getProperSize 71 import org.fossify.commons.extensions.getTextSize 72 import org.fossify.commons.extensions.getTimeFormat 73 import org.fossify.commons.extensions.handleDeletePasswordProtection 74 import org.fossify.commons.extensions.hasOTGConnected 75 import org.fossify.commons.extensions.highlightTextPart 76 import org.fossify.commons.extensions.isPathOnOTG 77 import org.fossify.commons.extensions.isRestrictedSAFOnlyRoot 78 import org.fossify.commons.extensions.relativizeWith 79 import org.fossify.commons.extensions.setupViewBackground 80 import org.fossify.commons.extensions.showErrorToast 81 import org.fossify.commons.extensions.toFileDirItem 82 import org.fossify.commons.extensions.toast 83 import org.fossify.commons.helpers.CONFLICT_OVERWRITE 84 import org.fossify.commons.helpers.CONFLICT_SKIP 85 import org.fossify.commons.helpers.VIEW_TYPE_LIST 86 import org.fossify.commons.helpers.ensureBackgroundThread 87 import org.fossify.commons.helpers.getFilePlaceholderDrawables 88 import org.fossify.commons.models.FileDirItem 89 import org.fossify.commons.models.RadioItem 90 import org.fossify.commons.views.MyRecyclerView 91 import org.fossify.filemanager.R 92 import org.fossify.filemanager.activities.SimpleActivity 93 import org.fossify.filemanager.activities.SplashActivity 94 import org.fossify.filemanager.databinding.ItemDirGridBinding 95 import org.fossify.filemanager.databinding.ItemEmptyBinding 96 import org.fossify.filemanager.databinding.ItemFileDirListBinding 97 import org.fossify.filemanager.databinding.ItemFileGridBinding 98 import org.fossify.filemanager.databinding.ItemSectionBinding 99 import org.fossify.filemanager.dialogs.CompressAsDialog 100 import org.fossify.filemanager.extensions.config 101 import org.fossify.filemanager.extensions.isPathOnRoot 102 import org.fossify.filemanager.extensions.isZipFile 103 import org.fossify.filemanager.extensions.setAs 104 import org.fossify.filemanager.extensions.setLastModified 105 import org.fossify.filemanager.extensions.sharePaths 106 import org.fossify.filemanager.extensions.toggleItemVisibility 107 import org.fossify.filemanager.extensions.tryOpenPathIntent 108 import org.fossify.filemanager.helpers.OPEN_AS_AUDIO 109 import org.fossify.filemanager.helpers.OPEN_AS_IMAGE 110 import org.fossify.filemanager.helpers.OPEN_AS_OTHER 111 import org.fossify.filemanager.helpers.OPEN_AS_TEXT 112 import org.fossify.filemanager.helpers.OPEN_AS_VIDEO 113 import org.fossify.filemanager.helpers.RootHelpers 114 import org.fossify.filemanager.interfaces.ItemOperationsListener 115 import org.fossify.filemanager.models.ListItem 116 import java.io.BufferedInputStream 117 import java.io.Closeable 118 import java.io.File 119 import java.util.LinkedList 120 import java.util.Locale 121 122 class ItemsAdapter( 123 activity: SimpleActivity, 124 var listItems: MutableList<ListItem>, 125 private val listener: ItemOperationsListener?, 126 recyclerView: MyRecyclerView, 127 private val isPickMultipleIntent: Boolean, 128 private val swipeRefreshLayout: SwipeRefreshLayout?, 129 canHaveIndividualViewType: Boolean = true, 130 itemClick: (Any) -> Unit, 131 ) : MyRecyclerViewAdapter(activity, recyclerView, itemClick), 132 RecyclerViewFastScroller.OnPopupTextUpdate { 133 134 private lateinit var fileDrawable: Drawable 135 private lateinit var folderDrawable: Drawable 136 private var fileDrawables = HashMap<String, Drawable>() 137 private var currentItemsHash = listItems.hashCode() 138 private var textToHighlight = "" 139 private val hasOTGConnected = activity.hasOTGConnected() 140 private var fontSize = 0f 141 private var smallerFontSize = 0f 142 private var dateFormat = "" 143 private var timeFormat = "" 144 145 private val config = activity.config 146 private val viewType = if (canHaveIndividualViewType) { 147 config.getFolderViewType( 148 path = listItems.firstOrNull { !it.isSectionTitle }?.mPath?.getParentPath().orEmpty() 149 ) 150 } else { 151 config.viewType 152 } 153 private val isListViewType = viewType == VIEW_TYPE_LIST 154 private var displayFilenamesInGrid = config.displayFilenames 155 156 companion object { 157 private const val TYPE_FILE = 1 158 private const val TYPE_DIR = 2 159 private const val TYPE_SECTION = 3 160 private const val TYPE_GRID_TYPE_DIVIDER = 4 161 } 162 163 init { 164 setupDragListener(true) 165 initDrawables() 166 updateFontSizes() 167 dateFormat = config.dateFormat 168 timeFormat = activity.getTimeFormat() 169 } 170 171 override fun getActionMenuId() = R.menu.cab 172 173 override fun prepareActionMode(menu: Menu) { 174 menu.apply { 175 findItem(R.id.cab_decompress).isVisible = 176 getSelectedFileDirItems().map { it.path }.any { it.isZipFile() } 177 findItem(R.id.cab_confirm_selection).isVisible = isPickMultipleIntent 178 findItem(R.id.cab_copy_path).isVisible = isOneItemSelected() 179 findItem(R.id.cab_open_with).isVisible = isOneFileSelected() 180 findItem(R.id.cab_open_as).isVisible = isOneFileSelected() 181 findItem(R.id.cab_set_as).isVisible = isOneFileSelected() 182 findItem(R.id.cab_create_shortcut).isVisible = isOneItemSelected() 183 184 checkHideBtnVisibility(this) 185 } 186 } 187 188 override fun actionItemPressed(id: Int) { 189 if (selectedKeys.isEmpty()) { 190 return 191 } 192 193 when (id) { 194 R.id.cab_confirm_selection -> confirmSelection() 195 R.id.cab_rename -> displayRenameDialog() 196 R.id.cab_properties -> showProperties() 197 R.id.cab_share -> shareFiles() 198 R.id.cab_hide -> toggleFileVisibility(true) 199 R.id.cab_unhide -> toggleFileVisibility(false) 200 R.id.cab_create_shortcut -> createShortcut() 201 R.id.cab_copy_path -> copyPath() 202 R.id.cab_set_as -> setAs() 203 R.id.cab_open_with -> openWith() 204 R.id.cab_open_as -> openAs() 205 R.id.cab_copy_to -> copyMoveTo(true) 206 R.id.cab_move_to -> tryMoveFiles() 207 R.id.cab_compress -> compressSelection() 208 R.id.cab_decompress -> decompressSelection() 209 R.id.cab_select_all -> selectAll() 210 R.id.cab_delete -> if (config.skipDeleteConfirmation) deleteFiles() else askConfirmDelete() 211 } 212 } 213 214 override fun getSelectableItemCount(): Int { 215 return listItems.filter { !it.isSectionTitle && !it.isGridTypeDivider }.size 216 } 217 218 override fun getIsItemSelectable(position: Int): Boolean { 219 return !listItems[position].isSectionTitle && !listItems[position].isGridTypeDivider 220 } 221 222 override fun getItemSelectionKey(position: Int): Int? { 223 return listItems.getOrNull(position)?.path?.hashCode() 224 } 225 226 override fun getItemKeyPosition(key: Int): Int { 227 return listItems.indexOfFirst { it.path.hashCode() == key } 228 } 229 230 override fun onActionModeCreated() { 231 swipeRefreshLayout?.isRefreshing = false 232 swipeRefreshLayout?.isEnabled = false 233 } 234 235 override fun onActionModeDestroyed() { 236 swipeRefreshLayout?.isEnabled = config.enablePullToRefresh 237 } 238 239 override fun getItemViewType(position: Int): Int { 240 return when { 241 listItems[position].isGridTypeDivider -> TYPE_GRID_TYPE_DIVIDER 242 listItems[position].isSectionTitle -> TYPE_SECTION 243 listItems[position].mIsDirectory -> TYPE_DIR 244 else -> TYPE_FILE 245 } 246 } 247 248 override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { 249 val binding = Binding.getByItemViewType(viewType, isListViewType) 250 .inflate(layoutInflater, parent, false) 251 252 return createViewHolder(binding.root) 253 } 254 255 override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) { 256 val fileDirItem = listItems[position] 257 holder.bindView( 258 any = fileDirItem, 259 allowSingleClick = true, 260 allowLongClick = !fileDirItem.isSectionTitle 261 ) { itemView, layoutPosition -> 262 val viewType = getItemViewType(position) 263 setupView( 264 binding = Binding.getByItemViewType(viewType, isListViewType).bind(itemView), 265 listItem = fileDirItem 266 ) 267 } 268 bindViewHolder(holder) 269 } 270 271 override fun getItemCount() = listItems.size 272 273 private fun getItemWithKey(key: Int): FileDirItem? { 274 return listItems.firstOrNull { it.path.hashCode() == key } 275 } 276 277 private fun isOneFileSelected(): Boolean { 278 return isOneItemSelected() && getItemWithKey(selectedKeys.first())?.isDirectory == false 279 } 280 281 private fun checkHideBtnVisibility(menu: Menu) { 282 var hiddenCnt = 0 283 var unhiddenCnt = 0 284 getSelectedFileDirItems().map { it.name }.forEach { 285 if (it.startsWith(".")) { 286 hiddenCnt++ 287 } else { 288 unhiddenCnt++ 289 } 290 } 291 292 menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0 293 menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0 294 } 295 296 private fun confirmSelection() { 297 if (selectedKeys.isNotEmpty()) { 298 val paths = getSelectedFileDirItems() 299 .asSequence() 300 .filter { !it.isDirectory }.map { it.path } 301 .toMutableList() as ArrayList<String> 302 if (paths.isEmpty()) { 303 finishActMode() 304 } else { 305 listener?.selectedPaths(paths) 306 } 307 } 308 } 309 310 private fun displayRenameDialog() { 311 val fileDirItems = getSelectedFileDirItems() 312 val paths = fileDirItems.asSequence().map { it.path }.toMutableList() as ArrayList<String> 313 when { 314 paths.size == 1 -> { 315 val oldPath = paths.first() 316 RenameItemDialog(activity, oldPath) { 317 config.moveFavorite(oldPath, it) 318 activity.runOnUiThread { 319 listener?.refreshFragment() 320 finishActMode() 321 } 322 } 323 } 324 325 fileDirItems.any { it.isDirectory } -> RenameItemsDialog(activity, paths) { 326 activity.runOnUiThread { 327 listener?.refreshFragment() 328 finishActMode() 329 } 330 } 331 332 else -> RenameDialog(activity, paths, false) { 333 activity.runOnUiThread { 334 listener?.refreshFragment() 335 finishActMode() 336 } 337 } 338 } 339 } 340 341 private fun showProperties() { 342 if (selectedKeys.size <= 1) { 343 PropertiesDialog(activity, getFirstSelectedItemPath(), config.shouldShowHidden()) 344 } else { 345 val paths = getSelectedFileDirItems().map { it.path } 346 PropertiesDialog(activity, paths, config.shouldShowHidden()) 347 } 348 } 349 350 private fun shareFiles() { 351 val selectedItems = getSelectedFileDirItems() 352 val paths = ArrayList<String>(selectedItems.size) 353 selectedItems.forEach { 354 addFileUris(it.path, paths) 355 } 356 activity.sharePaths(paths) 357 } 358 359 private fun toggleFileVisibility(hide: Boolean) { 360 ensureBackgroundThread { 361 getSelectedFileDirItems().forEach { 362 activity.toggleItemVisibility(it.path, hide) 363 } 364 activity.runOnUiThread { 365 listener?.refreshFragment() 366 finishActMode() 367 } 368 } 369 } 370 371 @SuppressLint("NewApi") 372 private fun createShortcut() { 373 val manager = activity.getSystemService(ShortcutManager::class.java) 374 if (manager.isRequestPinShortcutSupported) { 375 val path = getFirstSelectedItemPath() 376 val drawable = resources.getDrawable(R.drawable.shortcut_folder).mutate() 377 getShortcutImage(path, drawable) { 378 val intent = Intent(activity, SplashActivity::class.java) 379 intent.action = Intent.ACTION_VIEW 380 intent.flags = 381 intent.flags or 382 Intent.FLAG_ACTIVITY_NEW_TASK or 383 Intent.FLAG_ACTIVITY_CLEAR_TASK or 384 Intent.FLAG_ACTIVITY_NO_HISTORY 385 intent.data = Uri.fromFile(File(path)) 386 387 val shortcut = ShortcutInfo.Builder(activity, path) 388 .setShortLabel(path.getFilenameFromPath()) 389 .setIcon(Icon.createWithBitmap(drawable.convertToBitmap())) 390 .setIntent(intent) 391 .build() 392 393 manager.requestPinShortcut(shortcut, null) 394 } 395 } 396 } 397 398 private fun getShortcutImage(path: String, drawable: Drawable, callback: () -> Unit) { 399 val appIconColor = baseConfig.appIconColor 400 (drawable as LayerDrawable).findDrawableByLayerId(R.id.shortcut_folder_background) 401 .applyColorFilter(appIconColor) 402 if (activity.getIsPathDirectory(path)) { 403 callback() 404 } else { 405 ensureBackgroundThread { 406 val options = RequestOptions() 407 .format(DecodeFormat.PREFER_ARGB_8888) 408 .skipMemoryCache(true) 409 .diskCacheStrategy(DiskCacheStrategy.NONE) 410 .fitCenter() 411 412 val size = activity.resources.getDimension(R.dimen.shortcut_size).toInt() 413 val builder = Glide.with(activity) 414 .asDrawable() 415 .load(getImagePathToLoad(path)) 416 .apply(options) 417 .centerCrop() 418 .into(size, size) 419 420 try { 421 val bitmap = builder.get() 422 drawable.findDrawableByLayerId(R.id.shortcut_folder_background) 423 .applyColorFilter(0) 424 drawable.setDrawableByLayerId(R.id.shortcut_folder_image, bitmap) 425 } catch (e: Exception) { 426 val fileIcon = fileDrawables 427 .getOrElse( 428 key = path.substringAfterLast(".").lowercase(Locale.getDefault()), 429 defaultValue = { fileDrawable } 430 ) 431 drawable.setDrawableByLayerId(R.id.shortcut_folder_image, fileIcon) 432 } 433 434 activity.runOnUiThread { 435 callback() 436 } 437 } 438 } 439 } 440 441 @SuppressLint("NewApi") 442 private fun addFileUris(path: String, paths: ArrayList<String>) { 443 if (activity.getIsPathDirectory(path)) { 444 val shouldShowHidden = config.shouldShowHidden() 445 when { 446 activity.isRestrictedSAFOnlyRoot(path) -> { 447 activity.getAndroidSAFFileItems(path, shouldShowHidden, false) { files -> 448 files.forEach { 449 addFileUris(activity.getAndroidSAFUri(it.path).toString(), paths) 450 } 451 } 452 } 453 454 activity.isPathOnOTG(path) -> { 455 activity.getDocumentFile(path)?.listFiles() 456 ?.filter { if (shouldShowHidden) true else !it.name!!.startsWith(".") } 457 ?.forEach { 458 addFileUris(it.uri.toString(), paths) 459 } 460 } 461 462 else -> { 463 File(path).listFiles() 464 ?.filter { if (shouldShowHidden) true else !it.name.startsWith('.') } 465 ?.forEach { 466 addFileUris(it.absolutePath, paths) 467 } 468 } 469 } 470 } else { 471 paths.add(path) 472 } 473 } 474 475 private fun copyPath() { 476 activity.copyToClipboard(getFirstSelectedItemPath()) 477 finishActMode() 478 } 479 480 private fun setAs() { 481 activity.setAs(getFirstSelectedItemPath()) 482 } 483 484 private fun openWith() { 485 activity.tryOpenPathIntent(getFirstSelectedItemPath(), true) 486 } 487 488 private fun openAs() { 489 val res = activity.resources 490 val items = arrayListOf( 491 RadioItem(OPEN_AS_TEXT, res.getString(R.string.text_file)), 492 RadioItem(OPEN_AS_IMAGE, res.getString(R.string.image_file)), 493 RadioItem(OPEN_AS_AUDIO, res.getString(R.string.audio_file)), 494 RadioItem(OPEN_AS_VIDEO, res.getString(R.string.video_file)), 495 RadioItem(OPEN_AS_OTHER, res.getString(R.string.other_file)) 496 ) 497 498 RadioGroupDialog(activity, items) { 499 activity.tryOpenPathIntent(getFirstSelectedItemPath(), false, it as Int) 500 } 501 } 502 503 private fun tryMoveFiles() { 504 activity.handleDeletePasswordProtection { 505 copyMoveTo(false) 506 } 507 } 508 509 private fun copyMoveTo(isCopyOperation: Boolean) { 510 val files = getSelectedFileDirItems() 511 val firstFile = files[0] 512 val source = firstFile.getParentPath() 513 FilePickerDialog( 514 activity = activity, 515 currPath = activity.getDefaultCopyDestinationPath(config.shouldShowHidden(), source), 516 pickFile = false, 517 showHidden = config.shouldShowHidden(), 518 showFAB = true, 519 canAddShowHiddenButton = true, 520 showFavoritesButton = true 521 ) { 522 config.lastCopyPath = it 523 if (activity.isPathOnRoot(it) || activity.isPathOnRoot(firstFile.path)) { 524 copyMoveRootItems(files, it, isCopyOperation) 525 } else { 526 activity.copyMoveFilesTo( 527 fileDirItems = files, 528 source = source, 529 destination = it, 530 isCopyOperation = isCopyOperation, 531 copyPhotoVideoOnly = false, 532 copyHidden = config.shouldShowHidden() 533 ) { 534 if (!isCopyOperation) { 535 files.forEach { sourceFileDir -> 536 val sourcePath = sourceFileDir.path 537 if ( 538 activity.isRestrictedSAFOnlyRoot(sourcePath) 539 && activity.getDoesFilePathExist(sourcePath) 540 ) { 541 activity.deleteFile(sourceFileDir, true) { 542 listener?.refreshFragment() 543 activity.runOnUiThread { 544 finishActMode() 545 } 546 } 547 } else { 548 val sourceFile = File(sourcePath) 549 if ( 550 activity.getDoesFilePathExist(source) 551 && activity.getIsPathDirectory(source) 552 && sourceFile.list()?.isEmpty() == true 553 && sourceFile.getProperSize(true) == 0L 554 && sourceFile.getFileCount(true) == 0 555 ) { 556 val sourceFolder = sourceFile.toFileDirItem(activity) 557 activity.deleteFile(sourceFolder, true) { 558 listener?.refreshFragment() 559 activity.runOnUiThread { 560 finishActMode() 561 } 562 } 563 } else { 564 listener?.refreshFragment() 565 finishActMode() 566 } 567 } 568 } 569 } else { 570 listener?.refreshFragment() 571 finishActMode() 572 } 573 } 574 } 575 } 576 } 577 578 private fun copyMoveRootItems( 579 files: ArrayList<FileDirItem>, 580 destinationPath: String, 581 isCopyOperation: Boolean 582 ) { 583 activity.toast(R.string.copying) 584 ensureBackgroundThread { 585 val fileCnt = files.size 586 RootHelpers(activity).copyMoveFiles(files, destinationPath, isCopyOperation) { 587 when (it) { 588 fileCnt -> activity.toast(R.string.copying_success) 589 0 -> activity.toast(R.string.copy_failed) 590 else -> activity.toast(R.string.copying_success_partial) 591 } 592 593 activity.runOnUiThread { 594 listener?.refreshFragment() 595 finishActMode() 596 } 597 } 598 } 599 } 600 601 private fun compressSelection() { 602 val firstPath = getFirstSelectedItemPath() 603 if (activity.isPathOnOTG(firstPath)) { 604 activity.toast(R.string.unknown_error_occurred) 605 return 606 } 607 608 CompressAsDialog(activity, firstPath) { destination, password -> 609 activity.handleAndroidSAFDialog(firstPath) { granted -> 610 if (!granted) { 611 return@handleAndroidSAFDialog 612 } 613 activity.handleSAFDialog(firstPath) { 614 if (!it) { 615 return@handleSAFDialog 616 } 617 618 activity.toast(R.string.compressing) 619 val paths = getSelectedFileDirItems().map { it.path } 620 ensureBackgroundThread { 621 if (compressPaths(paths, destination, password)) { 622 activity.runOnUiThread { 623 activity.toast(R.string.compression_successful) 624 listener?.refreshFragment() 625 finishActMode() 626 } 627 } else { 628 activity.toast(R.string.compressing_failed) 629 } 630 } 631 } 632 } 633 } 634 } 635 636 private fun decompressSelection() { 637 val firstPath = getFirstSelectedItemPath() 638 if (activity.isPathOnOTG(firstPath)) { 639 activity.toast(R.string.unknown_error_occurred) 640 return 641 } 642 643 activity.handleSAFDialog(firstPath) { 644 if (!it) { 645 return@handleSAFDialog 646 } 647 648 val paths = getSelectedFileDirItems() 649 .asSequence() 650 .map { it.path } 651 .filter { it.isZipFile() } 652 .toList() 653 ensureBackgroundThread { 654 tryDecompressingPaths(paths) { success -> 655 activity.runOnUiThread { 656 if (success) { 657 activity.toast(R.string.decompression_successful) 658 listener?.refreshFragment() 659 finishActMode() 660 } else { 661 activity.toast(R.string.decompressing_failed) 662 } 663 } 664 } 665 } 666 } 667 } 668 669 private fun tryDecompressingPaths( 670 sourcePaths: List<String>, 671 callback: (success: Boolean) -> Unit 672 ) { 673 sourcePaths.forEach { path -> 674 ZipInputStream(BufferedInputStream(activity.getFileInputStreamSync(path))).use { zipInputStream -> 675 try { 676 val fileDirItems = ArrayList<FileDirItem>() 677 var entry = zipInputStream.nextEntry 678 while (entry != null) { 679 val currPath = if (entry.isDirectory) { 680 path 681 } else { 682 "${path.getParentPath().trimEnd('/')}/${entry.fileName}" 683 } 684 val fileDirItem = FileDirItem( 685 path = currPath, 686 name = entry.fileName, 687 isDirectory = entry.isDirectory, 688 children = 0, 689 size = entry.uncompressedSize 690 ) 691 fileDirItems.add(fileDirItem) 692 entry = zipInputStream.nextEntry 693 } 694 val destinationPath = fileDirItems.first().getParentPath().trimEnd('/') 695 activity.runOnUiThread { 696 activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) { 697 ensureBackgroundThread { 698 decompressPaths(sourcePaths, it, callback) 699 } 700 } 701 } 702 } catch (zipException: ZipException) { 703 if (zipException.type == ZipException.Type.WRONG_PASSWORD) { 704 activity.showErrorToast(activity.getString(R.string.invalid_password)) 705 } else { 706 activity.showErrorToast(zipException) 707 } 708 } catch (exception: Exception) { 709 activity.showErrorToast(exception) 710 } 711 } 712 } 713 } 714 715 private fun decompressPaths( 716 paths: List<String>, 717 conflictResolutions: LinkedHashMap<String, Int>, 718 callback: (success: Boolean) -> Unit 719 ) { 720 paths.forEach { path -> 721 val zipInputStream = 722 ZipInputStream(BufferedInputStream(activity.getFileInputStreamSync(path))) 723 724 val foldersTimestamp = mutableListOf<Pair<File, LocalFileHeader>>() 725 zipInputStream.use { 726 try { 727 var entry = zipInputStream.nextEntry 728 val zipFileName = path.getFilenameFromPath() 729 val newFolderName = zipFileName.subSequence(0, zipFileName.length - 4) 730 while (entry != null) { 731 val parentPath = path.getParentPath() 732 val newPath = "$parentPath/$newFolderName/${entry.fileName.trimEnd('/')}" 733 734 val resolution = getConflictResolution(conflictResolutions, newPath) 735 val doesPathExist = activity.getDoesFilePathExist(newPath) 736 if (doesPathExist && resolution == CONFLICT_OVERWRITE) { 737 val fileDirItem = FileDirItem( 738 path = newPath, 739 name = newPath.getFilenameFromPath(), 740 isDirectory = entry.isDirectory 741 ) 742 if (activity.getIsPathDirectory(path)) { 743 activity.deleteFolderBg(fileDirItem, false) { 744 if (it) { 745 extractEntry(newPath, entry, zipInputStream, foldersTimestamp) 746 } else { 747 callback(false) 748 } 749 } 750 } else { 751 activity.deleteFileBg(fileDirItem, false, false) { 752 if (it) { 753 extractEntry(newPath, entry, zipInputStream, foldersTimestamp) 754 } else { 755 callback(false) 756 } 757 } 758 } 759 } else if (!doesPathExist) { 760 extractEntry(newPath, entry, zipInputStream, foldersTimestamp) 761 } 762 763 entry = zipInputStream.nextEntry 764 } 765 for ((dir, header) in foldersTimestamp.asReversed()) { 766 dir.setLastModified(header) 767 } 768 callback(true) 769 } catch (e: Exception) { 770 activity.showErrorToast(e) 771 callback(false) 772 } 773 } 774 } 775 } 776 777 private fun extractEntry( 778 newPath: String, 779 entry: LocalFileHeader, 780 zipInputStream: ZipInputStream, 781 foldersTimestamp: MutableList<Pair<File, LocalFileHeader>> 782 ) { 783 if (entry.isDirectory) { 784 if (!activity.createDirectorySync(newPath) && !activity.getDoesFilePathExist(newPath)) { 785 val error = 786 String.format(activity.getString(R.string.could_not_create_file), newPath) 787 activity.showErrorToast(error) 788 } else { 789 foldersTimestamp.add(Pair(File(newPath), entry)) 790 } 791 } else { 792 val fos = activity.getFileOutputStreamSync(newPath, newPath.getMimeType()) 793 if (fos != null) { 794 zipInputStream.copyTo(fos) 795 File(newPath).setLastModified(entry) 796 } 797 } 798 } 799 800 private fun getConflictResolution( 801 conflictResolutions: LinkedHashMap<String, Int>, 802 path: String 803 ): Int { 804 return if (conflictResolutions.size == 1 && conflictResolutions.containsKey("")) { 805 conflictResolutions[""]!! 806 } else if (conflictResolutions.containsKey(path)) { 807 conflictResolutions[path]!! 808 } else { 809 CONFLICT_SKIP 810 } 811 } 812 813 @SuppressLint("NewApi") 814 private fun compressPaths( 815 sourcePaths: List<String>, 816 targetPath: String, 817 password: String? = null 818 ): Boolean { 819 val queue = LinkedList<String>() 820 val fos = activity.getFileOutputStreamSync(targetPath, "application/zip") ?: return false 821 822 val zout = 823 password?.let { ZipOutputStream(fos, password.toCharArray()) } ?: ZipOutputStream(fos) 824 var res: Closeable = fos 825 826 fun zipEntry(name: String, lastModified: Long) = ZipParameters().also { 827 it.fileNameInZip = name 828 it.lastModifiedFileTime = lastModified 829 if (password != null) { 830 it.isEncryptFiles = true 831 it.encryptionMethod = EncryptionMethod.AES 832 } 833 } 834 835 try { 836 sourcePaths.forEach { currentPath -> 837 var name: String 838 var mainFilePath = currentPath 839 val base = "${mainFilePath.getParentPath()}/" 840 res = zout 841 queue.push(mainFilePath) 842 if (activity.getIsPathDirectory(mainFilePath)) { 843 name = "${mainFilePath.getFilenameFromPath()}/" 844 val dirModified = File(mainFilePath).lastModified() 845 zout.putNextEntry( 846 ZipParameters().also { 847 it.fileNameInZip = name 848 it.lastModifiedFileTime = dirModified 849 } 850 ) 851 } 852 853 while (!queue.isEmpty()) { 854 mainFilePath = queue.pop() 855 if (activity.getIsPathDirectory(mainFilePath)) { 856 if (activity.isRestrictedSAFOnlyRoot(mainFilePath)) { 857 activity.getAndroidSAFFileItems(mainFilePath, true) { files -> 858 for (file in files) { 859 name = file.path.relativizeWith(base) 860 if (activity.getIsPathDirectory(file.path)) { 861 queue.push(file.path) 862 name = "${name.trimEnd('/')}/" 863 zout.putNextEntry(zipEntry(name, file.modified)) 864 } else { 865 zout.putNextEntry(zipEntry(name, file.modified)) 866 activity.getFileInputStreamSync(file.path)!!.copyTo(zout) 867 zout.closeEntry() 868 } 869 } 870 } 871 } else { 872 val mainFile = File(mainFilePath) 873 for (file in mainFile.listFiles()) { 874 name = file.path.relativizeWith(base) 875 if (activity.getIsPathDirectory(file.absolutePath)) { 876 queue.push(file.absolutePath) 877 name = "${name.trimEnd('/')}/" 878 zout.putNextEntry(zipEntry(name, file.lastModified())) 879 } else { 880 zout.putNextEntry(zipEntry(name, file.lastModified())) 881 activity.getFileInputStreamSync(file.path)!!.copyTo(zout) 882 zout.closeEntry() 883 } 884 } 885 } 886 887 } else { 888 name = 889 if (base == currentPath) { 890 currentPath.getFilenameFromPath() 891 } else { 892 mainFilePath.relativizeWith(base) 893 } 894 val fileModified = File(mainFilePath).lastModified() 895 zout.putNextEntry(zipEntry(name, fileModified)) 896 activity.getFileInputStreamSync(mainFilePath)!!.copyTo(zout) 897 zout.closeEntry() 898 } 899 } 900 } 901 } catch (exception: Exception) { 902 activity.showErrorToast(exception) 903 return false 904 } finally { 905 res.close() 906 } 907 return true 908 } 909 910 private fun askConfirmDelete() { 911 activity.handleDeletePasswordProtection { 912 val itemsCnt = selectedKeys.size 913 val items = if (itemsCnt == 1) { 914 "\"${getFirstSelectedItemPath().getFilenameFromPath()}\"" 915 } else { 916 resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt) 917 } 918 919 val question = String.format(resources.getString(R.string.deletion_confirmation), items) 920 ConfirmationDialog(activity, question) { 921 deleteFiles() 922 } 923 } 924 } 925 926 private fun deleteFiles() { 927 if (selectedKeys.isEmpty()) { 928 return 929 } 930 931 val SAFPath = getFirstSelectedItemPath() 932 if (activity.isPathOnRoot(SAFPath) && !RootTools.isRootAvailable()) { 933 activity.toast(R.string.rooted_device_only) 934 return 935 } 936 937 activity.handleSAFDialog(SAFPath) { granted -> 938 if (!granted) { 939 return@handleSAFDialog 940 } 941 942 val files = ArrayList<FileDirItem>(selectedKeys.size) 943 val positions = ArrayList<Int>() 944 945 ensureBackgroundThread { 946 selectedKeys.forEach { key -> 947 config.removeFavorite(getItemWithKey(key)?.path ?: "") 948 val position = listItems.indexOfFirst { it.path.hashCode() == key } 949 if (position != -1) { 950 positions.add(position) 951 files.add(listItems[position]) 952 } 953 } 954 955 positions.sortDescending() 956 activity.runOnUiThread { 957 removeSelectedItems(positions) 958 listener?.deleteFiles(files) 959 positions.forEach { 960 listItems.removeAt(it) 961 } 962 } 963 } 964 } 965 } 966 967 private fun getFirstSelectedItemPath() = getSelectedFileDirItems().first().path 968 969 private fun getSelectedFileDirItems(): ArrayList<FileDirItem> { 970 return listItems.filter { 971 selectedKeys.contains(it.path.hashCode()) 972 } as ArrayList<FileDirItem> 973 } 974 975 fun updateItems(newItems: ArrayList<ListItem>, highlightText: String = "") { 976 if (newItems.hashCode() != currentItemsHash) { 977 currentItemsHash = newItems.hashCode() 978 textToHighlight = highlightText 979 listItems = newItems.clone() as ArrayList<ListItem> 980 notifyDataSetChanged() 981 finishActMode() 982 } else if (textToHighlight != highlightText) { 983 textToHighlight = highlightText 984 notifyDataSetChanged() 985 } 986 } 987 988 fun updateFontSizes() { 989 fontSize = activity.getTextSize() 990 smallerFontSize = fontSize * 0.8f 991 notifyDataSetChanged() 992 } 993 994 fun updateDateTimeFormat() { 995 dateFormat = config.dateFormat 996 timeFormat = activity.getTimeFormat() 997 notifyDataSetChanged() 998 } 999 1000 fun updateDisplayFilenamesInGrid() { 1001 displayFilenamesInGrid = config.displayFilenames 1002 notifyDataSetChanged() 1003 } 1004 1005 fun updateChildCount(path: String, count: Int) { 1006 val position = getItemKeyPosition(path.hashCode()) 1007 val item = listItems.getOrNull(position) ?: return 1008 item.children = count 1009 notifyItemChanged(position, Unit) 1010 } 1011 1012 fun isASectionTitle(position: Int) = listItems.getOrNull(position)?.isSectionTitle ?: false 1013 1014 fun isGridTypeDivider(position: Int) = listItems.getOrNull(position)?.isGridTypeDivider ?: false 1015 1016 override fun onViewRecycled(holder: ViewHolder) { 1017 super.onViewRecycled(holder) 1018 if (!activity.isDestroyed && !activity.isFinishing) { 1019 val icon = Binding.getByItemViewType(holder.itemViewType, isListViewType) 1020 .bind(holder.itemView).itemIcon 1021 if (icon != null) { 1022 Glide.with(activity).clear(icon) 1023 } 1024 } 1025 } 1026 1027 private fun setupView(binding: ItemViewBinding, listItem: ListItem) { 1028 val isSelected = selectedKeys.contains(listItem.path.hashCode()) 1029 binding.apply { 1030 if (listItem.isSectionTitle) { 1031 itemIcon?.setImageDrawable(folderDrawable) 1032 itemSection?.text = 1033 if (textToHighlight.isEmpty()) { 1034 listItem.mName 1035 } else { 1036 listItem.mName.highlightTextPart( 1037 textToHighlight = textToHighlight, 1038 color = properPrimaryColor 1039 ) 1040 } 1041 itemSection?.setTextColor(textColor) 1042 itemSection?.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize) 1043 } else if (!listItem.isGridTypeDivider) { 1044 root.setupViewBackground(activity) 1045 itemFrame.isSelected = isSelected 1046 val fileName = listItem.name 1047 itemName?.text = 1048 if (textToHighlight.isEmpty()) { 1049 fileName 1050 } else { 1051 fileName.highlightTextPart( 1052 textToHighlight = textToHighlight, 1053 color = properPrimaryColor 1054 ) 1055 } 1056 itemName?.setTextColor(textColor) 1057 itemName?.setTextSize( 1058 TypedValue.COMPLEX_UNIT_PX, 1059 if (isListViewType) fontSize else smallerFontSize 1060 ) 1061 1062 itemDetails?.setTextColor(textColor) 1063 itemDetails?.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize) 1064 1065 itemDate?.setTextColor(textColor) 1066 itemDate?.setTextSize(TypedValue.COMPLEX_UNIT_PX, smallerFontSize) 1067 1068 itemCheck?.beVisibleIf(isSelected) 1069 if (isSelected) { 1070 itemCheck?.background?.applyColorFilter(properPrimaryColor) 1071 itemCheck?.applyColorFilter(contrastColor) 1072 } 1073 1074 if (!isListViewType && !listItem.isDirectory) { 1075 itemName?.beVisibleIf(displayFilenamesInGrid) 1076 } else { 1077 itemName?.beVisible() 1078 } 1079 1080 if (listItem.isDirectory) { 1081 itemIcon?.setImageDrawable(folderDrawable) 1082 itemDetails?.text = getChildrenCnt(listItem) 1083 itemDate?.beGone() 1084 } else { 1085 itemDetails?.text = listItem.size.formatSize() 1086 itemDate?.beVisible() 1087 itemDate?.text = listItem.modified.formatDate(activity, dateFormat, timeFormat) 1088 1089 val drawable = fileDrawables.getOrElse( 1090 key = fileName.substringAfterLast(".").lowercase(Locale.getDefault()), 1091 defaultValue = { fileDrawable } 1092 ) 1093 val options = RequestOptions() 1094 .signature(listItem.getKey()) 1095 .diskCacheStrategy(DiskCacheStrategy.RESOURCE) 1096 .error(drawable) 1097 .transform(CenterCrop(), RoundedCorners(10)) 1098 1099 val itemToLoad = getImagePathToLoad(listItem.path) 1100 if (!activity.isDestroyed && itemIcon != null) { 1101 Glide.with(activity) 1102 .load(itemToLoad) 1103 .transition(DrawableTransitionOptions.withCrossFade()) 1104 .apply(options) 1105 .into(itemIcon!!) 1106 } 1107 } 1108 } 1109 } 1110 } 1111 1112 private fun getChildrenCnt(item: FileDirItem): String { 1113 val children = item.children 1114 return activity.resources.getQuantityString(R.plurals.items, children, children) 1115 } 1116 1117 private fun getOTGPublicPath(itemToLoad: String): String { 1118 return "${baseConfig.OTGTreeUri}/document/${baseConfig.OTGPartition}%3A${ 1119 itemToLoad.substring(baseConfig.OTGPath.length).replace("/", "%2F") 1120 }" 1121 } 1122 1123 private fun getImagePathToLoad(path: String): Any { 1124 var itemToLoad = if (path.endsWith(".apk", true)) { 1125 val packageInfo = 1126 activity.packageManager.getPackageArchiveInfo(path, PackageManager.GET_ACTIVITIES) 1127 val appInfo = packageInfo?.applicationInfo 1128 if (appInfo != null) { 1129 appInfo.sourceDir = path 1130 appInfo.publicSourceDir = path 1131 appInfo.loadIcon(activity.packageManager) 1132 } else { 1133 path 1134 } 1135 } else { 1136 path 1137 } 1138 1139 if (activity.isRestrictedSAFOnlyRoot(path)) { 1140 itemToLoad = activity.getAndroidSAFUri(path) 1141 } else if (hasOTGConnected && itemToLoad is String && activity.isPathOnOTG(itemToLoad) && baseConfig.OTGTreeUri.isNotEmpty() && baseConfig.OTGPartition.isNotEmpty()) { 1142 itemToLoad = getOTGPublicPath(itemToLoad) 1143 } 1144 1145 return itemToLoad 1146 } 1147 1148 fun initDrawables() { 1149 folderDrawable = 1150 resources.getColoredDrawableWithColor(R.drawable.ic_folder_vector, properPrimaryColor) 1151 folderDrawable.alpha = 180 1152 fileDrawable = resources.getDrawable(R.drawable.ic_file_generic) 1153 fileDrawables = getFilePlaceholderDrawables(activity) 1154 } 1155 1156 override fun onChange(position: Int): String { 1157 return listItems.getOrNull(position)?.getBubbleText(activity, dateFormat, timeFormat) ?: "" 1158 } 1159 1160 private sealed interface Binding { 1161 companion object { 1162 fun getByItemViewType(viewType: Int, isListViewType: Boolean): Binding { 1163 return when (viewType) { 1164 TYPE_SECTION -> ItemSection 1165 TYPE_GRID_TYPE_DIVIDER -> ItemEmpty 1166 else -> { 1167 if (isListViewType) { 1168 ItemFileDirList 1169 } else if (viewType == TYPE_DIR) { 1170 ItemDirGrid 1171 } else { 1172 ItemFileGrid 1173 } 1174 } 1175 } 1176 } 1177 } 1178 1179 fun inflate( 1180 layoutInflater: LayoutInflater, 1181 viewGroup: ViewGroup, 1182 attachToRoot: Boolean 1183 ): ItemViewBinding 1184 1185 fun bind(view: View): ItemViewBinding 1186 1187 data object ItemSection : Binding { 1188 override fun inflate( 1189 layoutInflater: LayoutInflater, 1190 viewGroup: ViewGroup, 1191 attachToRoot: Boolean 1192 ): ItemViewBinding { 1193 return ItemSectionBindingAdapter( 1194 ItemSectionBinding.inflate(layoutInflater, viewGroup, attachToRoot) 1195 ) 1196 } 1197 1198 override fun bind(view: View): ItemViewBinding { 1199 return ItemSectionBindingAdapter(ItemSectionBinding.bind(view)) 1200 } 1201 } 1202 1203 data object ItemEmpty : Binding { 1204 override fun inflate( 1205 layoutInflater: LayoutInflater, 1206 viewGroup: ViewGroup, 1207 attachToRoot: Boolean 1208 ): ItemViewBinding { 1209 return ItemEmptyBindingAdapter( 1210 ItemEmptyBinding.inflate(layoutInflater, viewGroup, attachToRoot) 1211 ) 1212 } 1213 1214 override fun bind(view: View): ItemViewBinding { 1215 return ItemEmptyBindingAdapter(ItemEmptyBinding.bind(view)) 1216 } 1217 } 1218 1219 data object ItemFileDirList : Binding { 1220 override fun inflate( 1221 layoutInflater: LayoutInflater, 1222 viewGroup: ViewGroup, 1223 attachToRoot: Boolean 1224 ): ItemViewBinding { 1225 return ItemFileDirListBindingAdapter( 1226 ItemFileDirListBinding.inflate(layoutInflater, viewGroup, attachToRoot) 1227 ) 1228 } 1229 1230 override fun bind(view: View): ItemViewBinding { 1231 return ItemFileDirListBindingAdapter(ItemFileDirListBinding.bind(view)) 1232 } 1233 } 1234 1235 data object ItemDirGrid : Binding { 1236 override fun inflate( 1237 layoutInflater: LayoutInflater, 1238 viewGroup: ViewGroup, 1239 attachToRoot: Boolean 1240 ): ItemViewBinding { 1241 return ItemDirGridBindingAdapter( 1242 ItemDirGridBinding.inflate(layoutInflater, viewGroup, attachToRoot) 1243 ) 1244 } 1245 1246 override fun bind(view: View): ItemViewBinding { 1247 return ItemDirGridBindingAdapter(ItemDirGridBinding.bind(view)) 1248 } 1249 } 1250 1251 data object ItemFileGrid : Binding { 1252 override fun inflate( 1253 layoutInflater: LayoutInflater, 1254 viewGroup: ViewGroup, 1255 attachToRoot: Boolean 1256 ): ItemViewBinding { 1257 return ItemFileGridBindingAdapter( 1258 ItemFileGridBinding.inflate(layoutInflater, viewGroup, attachToRoot) 1259 ) 1260 } 1261 1262 override fun bind(view: View): ItemViewBinding { 1263 return ItemFileGridBindingAdapter(ItemFileGridBinding.bind(view)) 1264 } 1265 } 1266 } 1267 1268 private interface ItemViewBinding : ViewBinding { 1269 val itemFrame: FrameLayout 1270 val itemName: TextView? 1271 val itemIcon: ImageView? 1272 val itemCheck: ImageView? 1273 val itemDetails: TextView? 1274 val itemDate: TextView? 1275 val itemSection: TextView? 1276 } 1277 1278 private class ItemSectionBindingAdapter(val binding: ItemSectionBinding) : ItemViewBinding { 1279 override val itemFrame: FrameLayout = binding.itemFrame 1280 override val itemName: TextView? = null 1281 override val itemIcon: ImageView = binding.itemIcon 1282 override val itemDetails: TextView? = null 1283 override val itemDate: TextView? = null 1284 override val itemCheck: ImageView? = null 1285 override val itemSection: TextView = binding.itemSection 1286 override fun getRoot(): View = binding.root 1287 } 1288 1289 private class ItemEmptyBindingAdapter(val binding: ItemEmptyBinding) : ItemViewBinding { 1290 override val itemFrame: FrameLayout = binding.itemFrame 1291 override val itemName: TextView? = null 1292 override val itemIcon: ImageView? = null 1293 override val itemDetails: TextView? = null 1294 override val itemDate: TextView? = null 1295 override val itemCheck: ImageView? = null 1296 override val itemSection: TextView? = null 1297 1298 override fun getRoot(): View = binding.root 1299 } 1300 1301 private class ItemFileDirListBindingAdapter( 1302 val binding: ItemFileDirListBinding 1303 ) : ItemViewBinding { 1304 override val itemFrame: FrameLayout = binding.itemFrame 1305 override val itemName: TextView = binding.itemName 1306 override val itemIcon: ImageView = binding.itemIcon 1307 override val itemDetails: TextView = binding.itemDetails 1308 override val itemDate: TextView = binding.itemDate 1309 override val itemCheck: ImageView? = null 1310 override val itemSection: TextView? = null 1311 1312 override fun getRoot(): View = binding.root 1313 } 1314 1315 private class ItemDirGridBindingAdapter(val binding: ItemDirGridBinding) : ItemViewBinding { 1316 override val itemFrame: FrameLayout = binding.itemFrame 1317 override val itemName: TextView = binding.itemName 1318 override val itemIcon: ImageView = binding.itemIcon 1319 override val itemDetails: TextView? = null 1320 override val itemDate: TextView? = null 1321 override val itemCheck: ImageView = binding.itemCheck 1322 override val itemSection: TextView? = null 1323 1324 override fun getRoot(): View = binding.root 1325 } 1326 1327 private class ItemFileGridBindingAdapter(val binding: ItemFileGridBinding) : ItemViewBinding { 1328 override val itemFrame: FrameLayout = binding.itemFrame 1329 override val itemName: TextView = binding.itemName 1330 override val itemIcon: ImageView = binding.itemIcon 1331 override val itemDetails: TextView? = null 1332 override val itemDate: TextView? = null 1333 override val itemCheck: ImageView? = null 1334 override val itemSection: TextView? = null 1335 1336 override fun getRoot(): View = binding.root 1337 } 1338 }123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338package org.fossify.filemanager.adapters
import android.annotation.SuppressLintimport android.content.Intentimport android.content.pm.PackageManagerimport android.content.pm.ShortcutInfoimport android.content.pm.ShortcutManagerimport android.graphics.drawable.Drawableimport android.graphics.drawable.Iconimport android.graphics.drawable.LayerDrawableimport android.net.Uriimport android.util.TypedValueimport android.view.LayoutInflaterimport android.view.Menuimport android.view.Viewimport android.view.ViewGroupimport android.widget.FrameLayoutimport android.widget.ImageViewimport android.widget.TextViewimport androidx.swiperefreshlayout.widget.SwipeRefreshLayoutimport androidx.viewbinding.ViewBindingimport com.bumptech.glide.Glideimport com.bumptech.glide.load.DecodeFormatimport com.bumptech.glide.load.engine.DiskCacheStrategyimport com.bumptech.glide.load.resource.bitmap.CenterCropimport com.bumptech.glide.load.resource.bitmap.RoundedCornersimport com.bumptech.glide.load.resource.drawable.DrawableTransitionOptionsimport com.bumptech.glide.request.RequestOptionsimport com.qtalk.recyclerviewfastscroller.RecyclerViewFastScrollerimport com.stericson.RootTools.RootToolsimport net.lingala.zip4j.exception.ZipExceptionimport net.lingala.zip4j.io.inputstream.ZipInputStreamimport net.lingala.zip4j.io.outputstream.ZipOutputStreamimport net.lingala.zip4j.model.LocalFileHeaderimport net.lingala.zip4j.model.ZipParametersimport net.lingala.zip4j.model.enums.EncryptionMethodimport org.fossify.commons.adapters.MyRecyclerViewAdapterimport org.fossify.commons.dialogs.ConfirmationDialogimport org.fossify.commons.dialogs.FilePickerDialogimport org.fossify.commons.dialogs.PropertiesDialogimport org.fossify.commons.dialogs.RadioGroupDialogimport org.fossify.commons.dialogs.RenameDialogimport org.fossify.commons.dialogs.RenameItemDialogimport org.fossify.commons.dialogs.RenameItemsDialogimport org.fossify.commons.extensions.applyColorFilterimport org.fossify.commons.extensions.beGoneimport org.fossify.commons.extensions.beVisibleimport org.fossify.commons.extensions.beVisibleIfimport org.fossify.commons.extensions.convertToBitmapimport org.fossify.commons.extensions.copyToClipboardimport org.fossify.commons.extensions.createDirectorySyncimport org.fossify.commons.extensions.deleteFileimport org.fossify.commons.extensions.deleteFileBgimport org.fossify.commons.extensions.deleteFolderBgimport org.fossify.commons.extensions.formatDateimport org.fossify.commons.extensions.formatSizeimport org.fossify.commons.extensions.getAndroidSAFFileItemsimport org.fossify.commons.extensions.getAndroidSAFUriimport org.fossify.commons.extensions.getColoredDrawableWithColorimport org.fossify.commons.extensions.getDefaultCopyDestinationPathimport org.fossify.commons.extensions.getDocumentFileimport org.fossify.commons.extensions.getDoesFilePathExistimport org.fossify.commons.extensions.getFileCountimport org.fossify.commons.extensions.getFileInputStreamSyncimport org.fossify.commons.extensions.getFileOutputStreamSyncimport org.fossify.commons.extensions.getFilenameFromPathimport org.fossify.commons.extensions.getIsPathDirectoryimport org.fossify.commons.extensions.getMimeTypeimport org.fossify.commons.extensions.getParentPathimport org.fossify.commons.extensions.getProperSizeimport org.fossify.commons.extensions.getTextSizeimport org.fossify.commons.extensions.getTimeFormatimport org.fossify.commons.extensions.handleDeletePasswordProtectionimport org.fossify.commons.extensions.hasOTGConnectedimport org.fossify.commons.extensions.highlightTextPartimport org.fossify.commons.extensions.isPathOnOTGimport org.fossify.commons.extensions.isRestrictedSAFOnlyRootimport org.fossify.commons.extensions.relativizeWithimport org.fossify.commons.extensions.setupViewBackgroundimport org.fossify.commons.extensions.showErrorToastimport org.fossify.commons.extensions.toFileDirItemimport org.fossify.commons.extensions.toastimport org.fossify.commons.helpers.CONFLICT_OVERWRITEimport org.fossify.commons.helpers.CONFLICT_SKIPimport org.fossify.commons.helpers.VIEW_TYPE_LISTimport org.fossify.commons.helpers.ensureBackgroundThreadimport org.fossify.commons.helpers.getFilePlaceholderDrawablesimport org.fossify.commons.models.FileDirItemimport org.fossify.commons.models.RadioItemimport org.fossify.commons.views.MyRecyclerViewimport org.fossify.filemanager.Rimport org.fossify.filemanager.activities.SimpleActivityimport org.fossify.filemanager.activities.SplashActivityimport org.fossify.filemanager.databinding.ItemDirGridBindingimport org.fossify.filemanager.databinding.ItemEmptyBindingimport org.fossify.filemanager.databinding.ItemFileDirListBindingimport org.fossify.filemanager.databinding.ItemFileGridBindingimport org.fossify.filemanager.databinding.ItemSectionBindingimport org.fossify.filemanager.dialogs.CompressAsDialogimport org.fossify.filemanager.extensions.configimport org.fossify.filemanager.extensions.isPathOnRootimport org.fossify.filemanager.extensions.isZipFileimport org.fossify.filemanager.extensions.setAsimport org.fossify.filemanager.extensions.setLastModifiedimport org.fossify.filemanager.extensions.sharePathsimport org.fossify.filemanager.extensions.toggleItemVisibilityimport org.fossify.filemanager.extensions.tryOpenPathIntentimport org.fossify.filemanager.helpers.OPEN_AS_AUDIOimport org.fossify.filemanager.helpers.OPEN_AS_IMAGEimport org.fossify.filemanager.helpers.OPEN_AS_OTHERimport org.fossify.filemanager.helpers.OPEN_AS_TEXTimport org.fossify.filemanager.helpers.OPEN_AS_VIDEOimport org.fossify.filemanager.helpers.RootHelpersimport org.fossify.filemanager.interfaces.ItemOperationsListenerimport org.fossify.filemanager.models.ListItemimport java.io.BufferedInputStreamimport java.io.Closeableimport java.io.Fileimport java.util.LinkedListimport java.util.Locale
class ItemsAdapter( activity: SimpleActivity, var listItems: MutableList<ListItem>, private val listener: ItemOperationsListener?, recyclerView: MyRecyclerView, private val isPickMultipleIntent: Boolean, private val swipeRefreshLayout: SwipeRefreshLayout?, canHaveIndividualViewType: Boolean = true, itemClick: (Any) -> Unit,) : MyRecyclerViewAdapter(activity, recyclerView, itemClick), RecyclerViewFastScroller.OnPopupTextUpdate {
private lateinit var fileDrawable: Drawable private lateinit var folderDrawable: Drawable private var fileDrawables = HashMap<String, Drawable>() private var currentItemsHash = listItems.hashCode() private var textToHighlight = "" private val hasOTGConnected = activity.hasOTGConnected() private var fontSize = 0f private var smallerFontSize = 0f private var dateFormat = "" private var timeFormat = ""
private val config = activity.config private val viewType = if (canHaveIndividualViewType) { config.getFolderViewType( path = listItems.firstOrNull { !it.isSectionTitle }?.mPath?.getParentPath().orEmpty() ) } else { config.viewType } private val isListViewType = viewType == VIEW_TYPE_LIST private var displayFilenamesInGrid = config.displayFilenames
companion object { private const val TYPE_FILE = 1 private const val TYPE_DIR = 2 private const val TYPE_SECTION = 3 private const val TYPE_GRID_TYPE_DIVIDER = 4 }
init { setupDragListener(true) initDrawables() updateFontSizes() dateFormat = config.dateFormat timeFormat = activity.getTimeFormat() }
override fun getActionMenuId() = R.menu.cab
override fun prepareActionMode(menu: Menu) { menu.apply { findItem(R.id.cab_decompress).isVisible = getSelectedFileDirItems().map { it.path }.any { it.isZipFile() } findItem(R.id.cab_confirm_selection).isVisible = isPickMultipleIntent findItem(R.id.cab_copy_path).isVisible = isOneItemSelected() findItem(R.id.cab_open_with).isVisible = isOneFileSelected() findItem(R.id.cab_open_as).isVisible = isOneFileSelected() findItem(R.id.cab_set_as).isVisible = isOneFileSelected() findItem(R.id.cab_create_shortcut).isVisible = isOneItemSelected()
checkHideBtnVisibility(this) } }
override fun actionItemPressed(id: Int) { if (selectedKeys.isEmpty()) { return }
when (id) { R.id.cab_confirm_selection -> confirmSelection() R.id.cab_rename -> displayRenameDialog() R.id.cab_properties -> showProperties() R.id.cab_share -> shareFiles() R.id.cab_hide -> toggleFileVisibility(true) R.id.cab_unhide -> toggleFileVisibility(false) R.id.cab_create_shortcut -> createShortcut() R.id.cab_copy_path -> copyPath() R.id.cab_set_as -> setAs() R.id.cab_open_with -> openWith() R.id.cab_open_as -> openAs() R.id.cab_copy_to -> copyMoveTo(true) R.id.cab_move_to -> tryMoveFiles() R.id.cab_compress -> compressSelection() R.id.cab_decompress -> decompressSelection() R.id.cab_select_all -> selectAll() R.id.cab_delete -> if (config.skipDeleteConfirmation) deleteFiles() else askConfirmDelete() } }
override fun getSelectableItemCount(): Int { return listItems.filter { !it.isSectionTitle && !it.isGridTypeDivider }.size }
override fun getIsItemSelectable(position: Int): Boolean { return !listItems[position].isSectionTitle && !listItems[position].isGridTypeDivider }
override fun getItemSelectionKey(position: Int): Int? { return listItems.getOrNull(position)?.path?.hashCode() }
override fun getItemKeyPosition(key: Int): Int { return listItems.indexOfFirst { it.path.hashCode() == key } }
override fun onActionModeCreated() { swipeRefreshLayout?.isRefreshing = false swipeRefreshLayout?.isEnabled = false }
override fun onActionModeDestroyed() { swipeRefreshLayout?.isEnabled = config.enablePullToRefresh }
override fun getItemViewType(position: Int): Int { return when { listItems[position].isGridTypeDivider -> TYPE_GRID_TYPE_DIVIDER listItems[position].isSectionTitle -> TYPE_SECTION listItems[position].mIsDirectory -> TYPE_DIR else -> TYPE_FILE } }
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { val binding = Binding.getByItemViewType(viewType, isListViewType) .inflate(layoutInflater, parent, false)
return createViewHolder(binding.root) }
override fun onBindViewHolder(holder: MyRecyclerViewAdapter.ViewHolder, position: Int) { val fileDirItem = listItems[position] holder.bindView( any = fileDirItem, allowSingleClick = true, allowLongClick = !fileDirItem.isSectionTitle ) { itemView, layoutPosition -> val viewType = getItemViewType(position) setupView( binding = Binding.getByItemViewType(viewType, isListViewType).bind(itemView), listItem = fileDirItem ) } bindViewHolder(holder) }
override fun getItemCount() = listItems.size
private fun getItemWithKey(key: Int): FileDirItem? { return listItems.firstOrNull { it.path.hashCode() == key } }
private fun isOneFileSelected(): Boolean { return isOneItemSelected() && getItemWithKey(selectedKeys.first())?.isDirectory == false }
private fun checkHideBtnVisibility(menu: Menu) { var hiddenCnt = 0 var unhiddenCnt = 0 getSelectedFileDirItems().map { it.name }.forEach { if (it.startsWith(".")) { hiddenCnt++ } else { unhiddenCnt++ } }
menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0 menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0 }
private fun confirmSelection() { if (selectedKeys.isNotEmpty()) { val paths = getSelectedFileDirItems() .asSequence() .filter { !it.isDirectory }.map { it.path } .toMutableList() as ArrayList<String> if (paths.isEmpty()) { finishActMode() } else { listener?.selectedPaths(paths) } } }
private fun displayRenameDialog() { val fileDirItems = getSelectedFileDirItems() val paths = fileDirItems.asSequence().map { it.path }.toMutableList() as ArrayList<String> when { paths.size == 1 -> { val oldPath = paths.first() RenameItemDialog(activity, oldPath) { config.moveFavorite(oldPath, it) activity.runOnUiThread { listener?.refreshFragment() finishActMode() } } }
fileDirItems.any { it.isDirectory } -> RenameItemsDialog(activity, paths) { activity.runOnUiThread { listener?.refreshFragment() finishActMode() } }
else -> RenameDialog(activity, paths, false) { activity.runOnUiThread { listener?.refreshFragment() finishActMode() } } } }
private fun showProperties() { if (selectedKeys.size <= 1) { PropertiesDialog(activity, getFirstSelectedItemPath(), config.shouldShowHidden()) } else { val paths = getSelectedFileDirItems().map { it.path } PropertiesDialog(activity, paths, config.shouldShowHidden()) } }
private fun shareFiles() { val selectedItems = getSelectedFileDirItems() val paths = ArrayList<String>(selectedItems.size) selectedItems.forEach { addFileUris(it.path, paths) } activity.sharePaths(paths) }
private fun toggleFileVisibility(hide: Boolean) { ensureBackgroundThread { getSelectedFileDirItems().forEach { activity.toggleItemVisibility(it.path, hide) } activity.runOnUiThread { listener?.refreshFragment() finishActMode() } } }
@SuppressLint("NewApi") private fun createShortcut() { val manager = activity.getSystemService(ShortcutManager::class.java) if (manager.isRequestPinShortcutSupported) { val path = getFirstSelectedItemPath() val drawable = resources.getDrawable(R.drawable.shortcut_folder).mutate() getShortcutImage(path, drawable) { val intent = Intent(activity, SplashActivity::class.java) intent.action = Intent.ACTION_VIEW intent.flags = intent.flags or Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NO_HISTORY intent.data = Uri.fromFile(File(path))
val shortcut = ShortcutInfo.Builder(activity, path) .setShortLabel(path.getFilenameFromPath()) .setIcon(Icon.createWithBitmap(drawable.convertToBitmap())) .setIntent(intent) .build()
manager.requestPinShortcut(shortcut, null) } } }
private fun getShortcutImage(path: String, drawable: Drawable, callback: () -> Unit) { val appIconColor = baseConfig.appIconColor (drawable as LayerDrawable).findDrawableByLayerId(R.id.shortcut_folder_background) .applyColorFilter(appIconColor) if (activity.getIsPathDirectory(path)) { callback() } else { ensureBackgroundThread { val options = RequestOptions() .format(DecodeFormat.PREFER_ARGB_8888) .skipMemoryCache(true) .diskCacheStrategy(DiskCacheStrategy.NONE) .fitCenter()
val size = activity.resources.getDimension(R.dimen.shortcut_size).toInt() val builder = Glide.with(activity) .asDrawable() .load(getImagePathToLoad(path)) .apply(options) .centerCrop() .into(size, size)
try { val bitmap = builder.get() drawable.findDrawableByLayerId(R.id.shortcut_folder_background) .applyColorFilter(0) drawable.setDrawableByLayerId(R.id.shortcut_folder_image, bitmap) } catch (e: Exception) { val fileIcon = fileDrawables .getOrElse( key = path.substringAfterLast(".").lowercase(Locale.getDefault()), defaultValue = { fileDrawable } ) drawable.setDrawableByLayerId(R.id.shortcut_folder_image, fileIcon) }
activity.runOnUiThread { callback() } } } }
@SuppressLint("NewApi") private fun addFileUris(path: String, paths: ArrayList<String>) { if (activity.getIsPathDirectory(path)) { val shouldShowHidden = config.shouldShowHidden() when { activity.isRestrictedSAFOnlyRoot(path) -> { activity.getAndroidSAFFileItems(path, shouldShowHidden, false) { files -> files.forEach { addFileUris(activity.getAndroidSAFUri(it.path).toString(), paths) } } }
activity.isPathOnOTG(path) -> { activity.getDocumentFile(path)?.listFiles() ?.filter { if (shouldShowHidden) true else !it.name!!.startsWith(".") } ?.forEach { addFileUris(it.uri.toString(), paths) } }
else -> { File(path).listFiles() ?.filter { if (shouldShowHidden) true else !it.name.startsWith('.') } ?.forEach { addFileUris(it.absolutePath, paths) } } } } else { paths.add(path) } }
private fun copyPath() { activity.copyToClipboard(getFirstSelectedItemPath()) finishActMode() }
private fun setAs() { activity.setAs(getFirstSelectedItemPath()) }
private fun openWith() { activity.tryOpenPathIntent(getFirstSelectedItemPath(), true) }
private fun openAs() { val res = activity.resources val items = arrayListOf( RadioItem(OPEN_AS_TEXT, res.getString(R.string.text_file)), RadioItem(OPEN_AS_IMAGE, res.getString(R.string.image_file)), RadioItem(OPEN_AS_AUDIO, res.getString(R.string.audio_file)), RadioItem(OPEN_AS_VIDEO, res.getString(R.string.video_file)), RadioItem(OPEN_AS_OTHER, res.getString(R.string.other_file)) )
RadioGroupDialog(activity, items) { activity.tryOpenPathIntent(getFirstSelectedItemPath(), false, it as Int) } }
private fun tryMoveFiles() { activity.handleDeletePasswordProtection { copyMoveTo(false) } }
private fun copyMoveTo(isCopyOperation: Boolean) { val files = getSelectedFileDirItems() val firstFile = files[0] val source = firstFile.getParentPath() FilePickerDialog( activity = activity, currPath = activity.getDefaultCopyDestinationPath(config.shouldShowHidden(), source), pickFile = false, showHidden = config.shouldShowHidden(), showFAB = true, canAddShowHiddenButton = true, showFavoritesButton = true ) { config.lastCopyPath = it if (activity.isPathOnRoot(it) || activity.isPathOnRoot(firstFile.path)) { copyMoveRootItems(files, it, isCopyOperation) } else { activity.copyMoveFilesTo( fileDirItems = files, source = source, destination = it, isCopyOperation = isCopyOperation, copyPhotoVideoOnly = false, copyHidden = config.shouldShowHidden() ) { if (!isCopyOperation) { files.forEach { sourceFileDir -> val sourcePath = sourceFileDir.path if ( activity.isRestrictedSAFOnlyRoot(sourcePath) && activity.getDoesFilePathExist(sourcePath) ) { activity.deleteFile(sourceFileDir, true) { listener?.refreshFragment() activity.runOnUiThread { finishActMode() } } } else { val sourceFile = File(sourcePath) if ( activity.getDoesFilePathExist(source) && activity.getIsPathDirectory(source) && sourceFile.list()?.isEmpty() == true && sourceFile.getProperSize(true) == 0L && sourceFile.getFileCount(true) == 0 ) { val sourceFolder = sourceFile.toFileDirItem(activity) activity.deleteFile(sourceFolder, true) { listener?.refreshFragment() activity.runOnUiThread { finishActMode() } } } else { listener?.refreshFragment() finishActMode() } } } } else { listener?.refreshFragment() finishActMode() } } } } }
private fun copyMoveRootItems( files: ArrayList<FileDirItem>, destinationPath: String, isCopyOperation: Boolean ) { activity.toast(R.string.copying) ensureBackgroundThread { val fileCnt = files.size RootHelpers(activity).copyMoveFiles(files, destinationPath, isCopyOperation) { when (it) { fileCnt -> activity.toast(R.string.copying_success) 0 -> activity.toast(R.string.copy_failed) else -> activity.toast(R.string.copying_success_partial) }
activity.runOnUiThread { listener?.refreshFragment() finishActMode() } } } }
private fun compressSelection() { val firstPath = getFirstSelectedItemPath() if (activity.isPathOnOTG(firstPath)) { activity.toast(R.string.unknown_error_occurred) return }
CompressAsDialog(activity, firstPath) { destination, password -> activity.handleAndroidSAFDialog(firstPath) { granted -> if (!granted) { return@handleAndroidSAFDialog } activity.handleSAFDialog(firstPath) { if (!it) { return@handleSAFDialog }
activity.toast(R.string.compressing) val paths = getSelectedFileDirItems().map { it.path } ensureBackgroundThread { if (compressPaths(paths, destination, password)) { activity.runOnUiThread { activity.toast(R.string.compression_successful) listener?.refreshFragment() finishActMode() } } else { activity.toast(R.string.compressing_failed) } } } } } }
private fun decompressSelection() { val firstPath = getFirstSelectedItemPath() if (activity.isPathOnOTG(firstPath)) { activity.toast(R.string.unknown_error_occurred) return }
activity.handleSAFDialog(firstPath) { if (!it) { return@handleSAFDialog }
val paths = getSelectedFileDirItems() .asSequence() .map { it.path } .filter { it.isZipFile() } .toList() ensureBackgroundThread { tryDecompressingPaths(paths) { success -> activity.runOnUiThread { if (success) { activity.toast(R.string.decompression_successful) listener?.refreshFragment() finishActMode() } else { activity.toast(R.string.decompressing_failed) } } } } } }
private fun tryDecompressingPaths( sourcePaths: List<String>, callback: (success: Boolean) -> Unit ) { sourcePaths.forEach { path -> ZipInputStream(BufferedInputStream(activity.getFileInputStreamSync(path))).use { zipInputStream -> try { val fileDirItems = ArrayList<FileDirItem>() var entry = zipInputStream.nextEntry while (entry != null) { val currPath = if (entry.isDirectory) { path } else { "${path.getParentPath().trimEnd('/')}/${entry.fileName}" } val fileDirItem = FileDirItem( path = currPath, name = entry.fileName, isDirectory = entry.isDirectory, children = 0, size = entry.uncompressedSize ) fileDirItems.add(fileDirItem) entry = zipInputStream.nextEntry } val destinationPath = fileDirItems.first().getParentPath().trimEnd('/') activity.runOnUiThread { activity.checkConflicts(fileDirItems, destinationPath, 0, LinkedHashMap()) { ensureBackgroundThread { decompressPaths(sourcePaths, it, callback) } } } } catch (zipException: ZipException) { if (zipException.type == ZipException.Type.WRONG_PASSWORD) { activity.showErrorToast(activity.getString(R.string.invalid_password)) } else { activity.showErrorToast(zipException) } } catch (exception: Exception) { activity.showErrorToast(exception) } } } }
private fun decompressPaths( paths: List<String>, conflictResolutions: LinkedHashMap<String, Int>, callback: (success: Boolean) -> Unit ) { paths.forEach { path -> val zipInputStream = ZipInputStream(BufferedInputStream(activity.getFileInputStreamSync(path)))
val foldersTimestamp = mutableListOf<Pair<File, LocalFileHeader>>() zipInputStream.use { try { var entry = zipInputStream.nextEntry val zipFileName = path.getFilenameFromPath() val newFolderName = zipFileName.subSequence(0, zipFileName.length - 4) while (entry != null) { val parentPath = path.getParentPath() val newPath = "$parentPath/$newFolderName/${entry.fileName.trimEnd('/')}"
val resolution = getConflictResolution(conflictResolutions, newPath) val doesPathExist = activity.getDoesFilePathExist(newPath) if (doesPathExist && resolution == CONFLICT_OVERWRITE) { val fileDirItem = FileDirItem( path = newPath, name = newPath.getFilenameFromPath(), isDirectory = entry.isDirectory ) if (activity.getIsPathDirectory(path)) { activity.deleteFolderBg(fileDirItem, false) { if (it) { extractEntry(newPath, entry, zipInputStream, foldersTimestamp) } else { callback(false) } } } else { activity.deleteFileBg(fileDirItem, false, false) { if (it) { extractEntry(newPath, entry, zipInputStream, foldersTimestamp) } else { callback(false) } } } } else if (!doesPathExist) { extractEntry(newPath, entry, zipInputStream, foldersTimestamp) }
entry = zipInputStream.nextEntry } for ((dir, header) in foldersTimestamp.asReversed()) { dir.setLastModified(header) } callback(true) } catch (e: Exception) { activity.showErrorToast(e) callback(false) } } } }
private fun extractEntry( newPath: String, entry: LocalFileHeader, zipInputStream: ZipInputStream, foldersTimestamp: MutableList<Pair<File, LocalFileHeader>> ) { if (entry.isDirectory) { if (!activity.createDirectorySync(newPath) && !activity.getDoesFilePathExist(newPath)) { val error = String.format(activity.getString(R.string.could_not_create_file), newPath) activity.showErrorToast(error) } else { foldersTimestamp.add(Pair(File(newPath), entry)) } } else { val fos = activity.getFileOutputStreamSync(newPath, newPath.getMimeType()) if (fos != null) { zipInputStream.copyTo(fos) File(newPath).setLastModified(entry) } } }
private fun getConflictResolution( conflictResolutions: LinkedHashMap<String, Int>, path: String ): Int { return if (conflictResolutions.size == 1 && conflictResolutions.containsKey("")) { conflictResolutions[""]!! } else if (conflictResolutions.containsKey(path)) { conflictResolutions[path]!! } else { CONFLICT_SKIP } }
@SuppressLint("NewApi") private fun compressPaths( sourcePaths: List<String>, targetPath: String, password: String? = null ): Boolean { val queue = LinkedList<String>() val fos = activity.getFileOutputStreamSync(targetPath, "application/zip") ?: return false
val zout = password?.let { ZipOutputStream(fos, password.toCharArray()) } ?: ZipOutputStream(fos) var res: Closeable = fos
fun zipEntry(name: String, lastModified: Long) = ZipParameters().also { it.fileNameInZip = name it.lastModifiedFileTime = lastModified if (password != null) { it.isEncryptFiles = true it.encryptionMethod = EncryptionMethod.AES } }
try { sourcePaths.forEach { currentPath -> var name: String var mainFilePath = currentPath val base = "${mainFilePath.getParentPath()}/" res = zout queue.push(mainFilePath) if (activity.getIsPathDirectory(mainFilePath)) { name = "${mainFilePath.getFilenameFromPath()}/" val dirModified = File(mainFilePath).lastModified() zout.putNextEntry( ZipParameters().also { it.fileNameInZip = name it.lastModifiedFileTime = dirModified } ) }
while (!queue.isEmpty()) { mainFilePath = queue.pop() if (activity.getIsPathDirectory(mainFilePath)) { if (activity.isRestrictedSAFOnlyRoot(mainFilePath)) { activity.getAndroidSAFFileItems(mainFilePath, true) { files -> for (file in files) { name = file.path.relativizeWith(base) if (activity.getIsPathDirectory(file.path)) { queue.push(file.path) name = "${name.trimEnd('/')}/" zout.putNextEntry(zipEntry(name, file.modified)) } else { zout.putNextEntry(zipEntry(name, file.modified)) activity.getFileInputStreamSync(file.path)!!.copyTo(zout) zout.closeEntry() } } } } else { val mainFile = File(mainFilePath) for (file in mainFile.listFiles()) { name = file.path.relativizeWith(base) if (activity.getIsPathDirectory(file.absolutePath)) { queue.push(file.absolutePath) name = "${name.trimEnd('/')}/" zout.putNextEntry(zipEntry(name, file.lastModified())) } else { zout.putNextEntry(zipEntry(name, file.lastModified())) activity.getFileInputStreamSync(file.path)!!.copyTo(zout) zout.closeEntry() } } }
} else { name = if (base == currentPath) { currentPath.getFilenameFromPath() } else { mainFilePath.relativizeWith(base) } val fileModified = File(mainFilePath).lastModified() zout.putNextEntry(zipEntry(name, fileModified)) activity.getFileInputStreamSync(mainFilePath)!!.copyTo(zout) zout.closeEntry() } } } } catch (exception: Exception) { activity.showErrorToast(exception) return false } finally { res.close() } return true }
private fun askConfirmDelete() { activity.handleDeletePasswordProtection { val itemsCnt = selectedKeys.size val items = if (itemsCnt == 1) { "\"${getFirstSelectedItemPath().getFilenameFromPath()}\"" } else { resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt) }
val question = String.format(resources.getString(R.string.deletion_confirmation), items) ConfirmationDialog(activity, question) { deleteFiles() } } }
private fun deleteFiles() { if (selectedKeys.isEmpty()) { return }
val SAFPath = getFirstSelectedItemPath() if (activity.isPathOnRoot(SAFPath) && !RootTools.isRootAvailable()) { activity.toast(R.string.rooted_device_only) return }
activity.handleSAFDialog(SAFPath) { granted -> if (!granted) { return@handleSAFDialog }
val files = ArrayList<FileDirItem>(selectedKeys.size) val positions = ArrayList<Int>()
ensureBackgroundThread { selectedKeys.forEach { key -> config.removeFavorite(getItemWithKey(key)?.path ?: "") val position = listItems.indexOfFirst { it.path.hashCode() == key } if (position != -1) { positions.add(position) files.add(listItems[position]) } }
positions.sortDescending() activity.runOnUiThread { removeSelectedItems(positions) listener?.deleteFiles(files) positions.forEach { listItems.removeAt(it) } } } } }
private fun getFirstSelectedItemPath() = getSelectedFileDirItems().first().path
private fun getSelectedFileDirItems(): ArrayList<FileDirItem> { return listItems.filter { selectedKeys.contains(it.path.hashCode()) } as ArrayList<FileDirItem> }
fun updateItems(newItems: ArrayList<ListItem>, highlightText: String = "") { if (newItems.hashCode() != currentItemsHash) { currentItemsHash = newItems.hashCode() textToHighlight = highlightText listItems = newItems.clone() as ArrayList<ListItem> notifyDataSetChanged() finishActMode() } else if (textToHighlight != highlightText) { textToHighlight = highlightText notifyDataSetChanged() } }
fun updateFontSizes() { fontSize = activity.getTextSize() smallerFontSize = fontSize * 0.8f notifyDataSetChanged() }
fun updateDateTimeFormat() { dateFormat = config.dateFormat timeFormat = activity.getTimeFormat() notifyDataSetChanged() }
fun updateDisplayFilenamesInGrid() { displayFilenamesInGrid = config.displayFilenames notifyDataSetChanged() }
fun updateChildCount(path: String, count: Int) { val position = getItemKeyPosition(path.hashCode()) val item = listItems.getOrNull(position) ?: return item.children = count notifyItemChanged(position, Unit) }
fun isASectionTitle(position: Int) = listItems.getOrNull(position)?.isSectionTitle ?: false
fun isGridTypeDivider(position: Int) = listItems.getOrNull(position)?.isGridTypeDivider ?: false
override fun onViewRecycled(holder: ViewHolder) { super.onViewRecycled(holder) if (!activity.isDestroyed && !activity.isFinishing) { val icon = Binding.getByItemViewType(holder.itemViewType, isListViewType) .bind(holder.itemView).itemIcon if (icon != null) { Glide.with(activity).clear(icon) } } }
private fun setupView(binding: ItemViewBinding, listItem: ListItem) { val isSelected = selectedKeys.contains(listItem.path.hashCode()) binding.apply { if (listItem.isSectionTitle) { itemIcon?.setImageDrawable(folderDrawable) itemSection?.text = if (textToHighlight.isEmpty()) { listItem.mName } else { listItem.mName.highlightTextPart( textToHighlight = textToHighlight, color = properPrimaryColor ) } itemSection?.setTextColor(textColor) itemSection?.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize) } else if (!listItem.isGridTypeDivider) { root.setupViewBackground(activity) itemFrame.isSelected = isSelected val fileName = listItem.name itemName?.text = if (textToHighlight.isEmpty()) { fileName } else { fileName.highlightTextPart( textToHighlight = textToHighlight, color = properPrimaryColor ) } itemName?.setTextColor(textColor) itemName?.setTextSize( TypedValue.COMPLEX_UNIT_PX, if (isListViewType) fontSize else smallerFontSize )
itemDetails?.setTextColor(textColor) itemDetails?.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize)
itemDate?.setTextColor(textColor) itemDate?.setTextSize(TypedValue.COMPLEX_UNIT_PX, smallerFontSize)
itemCheck?.beVisibleIf(isSelected) if (isSelected) { itemCheck?.background?.applyColorFilter(properPrimaryColor) itemCheck?.applyColorFilter(contrastColor) }
if (!isListViewType && !listItem.isDirectory) { itemName?.beVisibleIf(displayFilenamesInGrid) } else { itemName?.beVisible() }
if (listItem.isDirectory) { itemIcon?.setImageDrawable(folderDrawable) itemDetails?.text = getChildrenCnt(listItem) itemDate?.beGone() } else { itemDetails?.text = listItem.size.formatSize() itemDate?.beVisible() itemDate?.text = listItem.modified.formatDate(activity, dateFormat, timeFormat)
val drawable = fileDrawables.getOrElse( key = fileName.substringAfterLast(".").lowercase(Locale.getDefault()), defaultValue = { fileDrawable } ) val options = RequestOptions() .signature(listItem.getKey()) .diskCacheStrategy(DiskCacheStrategy.RESOURCE) .error(drawable) .transform(CenterCrop(), RoundedCorners(10))
val itemToLoad = getImagePathToLoad(listItem.path) if (!activity.isDestroyed && itemIcon != null) { Glide.with(activity) .load(itemToLoad) .transition(DrawableTransitionOptions.withCrossFade()) .apply(options) .into(itemIcon!!) } } } } }
private fun getChildrenCnt(item: FileDirItem): String { val children = item.children return activity.resources.getQuantityString(R.plurals.items, children, children) }
private fun getOTGPublicPath(itemToLoad: String): String { return "${baseConfig.OTGTreeUri}/document/${baseConfig.OTGPartition}%3A${ itemToLoad.substring(baseConfig.OTGPath.length).replace("/", "%2F") }" }
private fun getImagePathToLoad(path: String): Any { var itemToLoad = if (path.endsWith(".apk", true)) { val packageInfo = activity.packageManager.getPackageArchiveInfo(path, PackageManager.GET_ACTIVITIES) val appInfo = packageInfo?.applicationInfo if (appInfo != null) { appInfo.sourceDir = path appInfo.publicSourceDir = path appInfo.loadIcon(activity.packageManager) } else { path } } else { path }
if (activity.isRestrictedSAFOnlyRoot(path)) { itemToLoad = activity.getAndroidSAFUri(path) } else if (hasOTGConnected && itemToLoad is String && activity.isPathOnOTG(itemToLoad) && baseConfig.OTGTreeUri.isNotEmpty() && baseConfig.OTGPartition.isNotEmpty()) { itemToLoad = getOTGPublicPath(itemToLoad) }
return itemToLoad }
fun initDrawables() { folderDrawable = resources.getColoredDrawableWithColor(R.drawable.ic_folder_vector, properPrimaryColor) folderDrawable.alpha = 180 fileDrawable = resources.getDrawable(R.drawable.ic_file_generic) fileDrawables = getFilePlaceholderDrawables(activity) }
override fun onChange(position: Int): String { return listItems.getOrNull(position)?.getBubbleText(activity, dateFormat, timeFormat) ?: "" }
private sealed interface Binding { companion object { fun getByItemViewType(viewType: Int, isListViewType: Boolean): Binding { return when (viewType) { TYPE_SECTION -> ItemSection TYPE_GRID_TYPE_DIVIDER -> ItemEmpty else -> { if (isListViewType) { ItemFileDirList } else if (viewType == TYPE_DIR) { ItemDirGrid } else { ItemFileGrid } } } } }
fun inflate( layoutInflater: LayoutInflater, viewGroup: ViewGroup, attachToRoot: Boolean ): ItemViewBinding
fun bind(view: View): ItemViewBinding
data object ItemSection : Binding { override fun inflate( layoutInflater: LayoutInflater, viewGroup: ViewGroup, attachToRoot: Boolean ): ItemViewBinding { return ItemSectionBindingAdapter( ItemSectionBinding.inflate(layoutInflater, viewGroup, attachToRoot) ) }
override fun bind(view: View): ItemViewBinding { return ItemSectionBindingAdapter(ItemSectionBinding.bind(view)) } }
data object ItemEmpty : Binding { override fun inflate( layoutInflater: LayoutInflater, viewGroup: ViewGroup, attachToRoot: Boolean ): ItemViewBinding { return ItemEmptyBindingAdapter( ItemEmptyBinding.inflate(layoutInflater, viewGroup, attachToRoot) ) }
override fun bind(view: View): ItemViewBinding { return ItemEmptyBindingAdapter(ItemEmptyBinding.bind(view)) } }
data object ItemFileDirList : Binding { override fun inflate( layoutInflater: LayoutInflater, viewGroup: ViewGroup, attachToRoot: Boolean ): ItemViewBinding { return ItemFileDirListBindingAdapter( ItemFileDirListBinding.inflate(layoutInflater, viewGroup, attachToRoot) ) }
override fun bind(view: View): ItemViewBinding { return ItemFileDirListBindingAdapter(ItemFileDirListBinding.bind(view)) } }
data object ItemDirGrid : Binding { override fun inflate( layoutInflater: LayoutInflater, viewGroup: ViewGroup, attachToRoot: Boolean ): ItemViewBinding { return ItemDirGridBindingAdapter( ItemDirGridBinding.inflate(layoutInflater, viewGroup, attachToRoot) ) }
override fun bind(view: View): ItemViewBinding { return ItemDirGridBindingAdapter(ItemDirGridBinding.bind(view)) } }
data object ItemFileGrid : Binding { override fun inflate( layoutInflater: LayoutInflater, viewGroup: ViewGroup, attachToRoot: Boolean ): ItemViewBinding { return ItemFileGridBindingAdapter( ItemFileGridBinding.inflate(layoutInflater, viewGroup, attachToRoot) ) }
override fun bind(view: View): ItemViewBinding { return ItemFileGridBindingAdapter(ItemFileGridBinding.bind(view)) } } }
private interface ItemViewBinding : ViewBinding { val itemFrame: FrameLayout val itemName: TextView? val itemIcon: ImageView? val itemCheck: ImageView? val itemDetails: TextView? val itemDate: TextView? val itemSection: TextView? }
private class ItemSectionBindingAdapter(val binding: ItemSectionBinding) : ItemViewBinding { override val itemFrame: FrameLayout = binding.itemFrame override val itemName: TextView? = null override val itemIcon: ImageView = binding.itemIcon override val itemDetails: TextView? = null override val itemDate: TextView? = null override val itemCheck: ImageView? = null override val itemSection: TextView = binding.itemSection override fun getRoot(): View = binding.root }
private class ItemEmptyBindingAdapter(val binding: ItemEmptyBinding) : ItemViewBinding { override val itemFrame: FrameLayout = binding.itemFrame override val itemName: TextView? = null override val itemIcon: ImageView? = null override val itemDetails: TextView? = null override val itemDate: TextView? = null override val itemCheck: ImageView? = null override val itemSection: TextView? = null
override fun getRoot(): View = binding.root }
private class ItemFileDirListBindingAdapter( val binding: ItemFileDirListBinding ) : ItemViewBinding { override val itemFrame: FrameLayout = binding.itemFrame override val itemName: TextView = binding.itemName override val itemIcon: ImageView = binding.itemIcon override val itemDetails: TextView = binding.itemDetails override val itemDate: TextView = binding.itemDate override val itemCheck: ImageView? = null override val itemSection: TextView? = null
override fun getRoot(): View = binding.root }
private class ItemDirGridBindingAdapter(val binding: ItemDirGridBinding) : ItemViewBinding { override val itemFrame: FrameLayout = binding.itemFrame override val itemName: TextView = binding.itemName override val itemIcon: ImageView = binding.itemIcon override val itemDetails: TextView? = null override val itemDate: TextView? = null override val itemCheck: ImageView = binding.itemCheck override val itemSection: TextView? = null
override fun getRoot(): View = binding.root }
private class ItemFileGridBindingAdapter(val binding: ItemFileGridBinding) : ItemViewBinding { override val itemFrame: FrameLayout = binding.itemFrame override val itemName: TextView = binding.itemName override val itemIcon: ImageView = binding.itemIcon override val itemDetails: TextView? = null override val itemDate: TextView? = null override val itemCheck: ImageView? = null override val itemSection: TextView? = null
override fun getRoot(): View = binding.root }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770package org.fossify.filemanager.fragments
import android.annotation.SuppressLintimport android.content.Contextimport android.os.Parcelableimport android.util.AttributeSetimport androidx.recyclerview.widget.GridLayoutManagerimport org.fossify.commons.activities.BaseSimpleActivityimport org.fossify.commons.dialogs.StoragePickerDialogimport org.fossify.commons.extensions.*import org.fossify.commons.helpers.*import org.fossify.commons.models.FileDirItemimport org.fossify.commons.views.Breadcrumbsimport org.fossify.commons.views.MyGridLayoutManagerimport org.fossify.commons.views.MyRecyclerViewimport org.fossify.filemanager.Rimport org.fossify.filemanager.activities.MainActivityimport org.fossify.filemanager.activities.SimpleActivityimport org.fossify.filemanager.adapters.ItemsAdapterimport org.fossify.filemanager.databinding.ItemsFragmentBindingimport org.fossify.filemanager.dialogs.CreateNewItemDialogimport org.fossify.filemanager.extensions.configimport org.fossify.filemanager.extensions.isPathOnRootimport org.fossify.filemanager.helpers.MAX_COLUMN_COUNTimport org.fossify.filemanager.helpers.RootHelpersimport org.fossify.filemanager.interfaces.ItemOperationsListenerimport org.fossify.filemanager.models.ListItemimport java.io.File
class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerFragment<MyViewPagerFragment.ItemsInnerBinding>(context, attributeSet), ItemOperationsListener, Breadcrumbs.BreadcrumbsListener { private var showHidden = false private var lastSearchedText = "" private var scrollStates = HashMap<String, Parcelable>() private var zoomListener: MyRecyclerView.MyZoomListener? = null
private var storedItems = ArrayList<ListItem>() private var itemsIgnoringSearch = ArrayList<ListItem>() private lateinit var binding: ItemsFragmentBinding
override fun onFinishInflate() { super.onFinishInflate() binding = ItemsFragmentBinding.bind(this) innerBinding = ItemsInnerBinding(binding) }
override fun setupFragment(activity: SimpleActivity) { if (this.activity == null) { this.activity = activity binding.apply { breadcrumbs.listener = this@ItemsFragment itemsSwipeRefresh.setOnRefreshListener { refreshFragment() } itemsFab.setOnClickListener { if (isCreateDocumentIntent) { (activity as MainActivity).createDocumentConfirmed(currentPath) } else { createNewItem() } } } } }
override fun onResume(textColor: Int) { context!!.updateTextColors(this) getRecyclerAdapter()?.apply { updatePrimaryColor() updateTextColor(textColor) initDrawables() }
binding.apply { val properPrimaryColor = context!!.getProperPrimaryColor() itemsFastscroller.updateColors(properPrimaryColor) progressBar.setIndicatorColor(properPrimaryColor) progressBar.trackColor = properPrimaryColor.adjustAlpha(LOWER_ALPHA)
if (currentPath != "") { breadcrumbs.updateColor(textColor) }
itemsSwipeRefresh.isEnabled = lastSearchedText.isEmpty() && activity?.config?.enablePullToRefresh != false } }
override fun setupFontSize() { getRecyclerAdapter()?.updateFontSizes() if (currentPath != "") { binding.breadcrumbs.updateFontSize(context!!.getTextSize(), false) } }
override fun setupDateTimeFormat() { getRecyclerAdapter()?.updateDateTimeFormat() }
override fun finishActMode() { getRecyclerAdapter()?.finishActMode() }
fun openPath(path: String, forceRefresh: Boolean = false) { if ((activity as? BaseSimpleActivity)?.isAskingPermissions == true) { return }
var realPath = path.trimEnd('/') if (realPath.isEmpty()) { realPath = "/" }
scrollStates[currentPath] = getScrollState()!! currentPath = realPath showHidden = context!!.config.shouldShowHidden() showProgressBar() getItems(currentPath) { originalPath, listItems -> if (currentPath != originalPath) { return@getItems }
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath) listItems.sort()
if (context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_GRID && listItems.none { it.isSectionTitle }) { if (listItems.any { it.mIsDirectory } && listItems.any { !it.mIsDirectory }) { val firstFileIndex = listItems.indexOfFirst { !it.mIsDirectory } if (firstFileIndex != -1) { val sectionTitle = ListItem("", "", false, 0, 0, 0, false, true) listItems.add(firstFileIndex, sectionTitle) } } }
itemsIgnoringSearch = listItems activity?.runOnUiThread { (activity as? MainActivity)?.refreshMenuItems() addItems(listItems, forceRefresh) if (context != null && currentViewType != context!!.config.getFolderViewType(currentPath)) { setupLayoutManager() } hideProgressBar() } } }
private fun addItems(items: ArrayList<ListItem>, forceRefresh: Boolean = false) { activity?.runOnUiThread { binding.itemsSwipeRefresh.isRefreshing = false binding.breadcrumbs.setBreadcrumb(currentPath) if (!forceRefresh && items.hashCode() == storedItems.hashCode()) { return@runOnUiThread }
storedItems = items if (binding.itemsList.adapter == null) { binding.breadcrumbs.updateFontSize(context!!.getTextSize(), true) }
ItemsAdapter(activity as SimpleActivity, storedItems, this, binding.itemsList, isPickMultipleIntent, binding.itemsSwipeRefresh) { if ((it as? ListItem)?.isSectionTitle == true) { openDirectory(it.mPath) searchClosed() } else { itemClicked(it as FileDirItem) } }.apply { setupZoomListener(zoomListener) binding.itemsList.adapter = this }
if (context.areSystemAnimationsEnabled) { binding.itemsList.scheduleLayoutAnimation() }
getRecyclerLayoutManager().onRestoreInstanceState(scrollStates[currentPath]) } }
private fun getScrollState() = getRecyclerLayoutManager().onSaveInstanceState()
private fun getRecyclerLayoutManager() = (binding.itemsList.layoutManager as MyGridLayoutManager)
@SuppressLint("NewApi") private fun getItems(path: String, callback: (originalPath: String, items: ArrayList<ListItem>) -> Unit) { ensureBackgroundThread { if (activity?.isDestroyed == false && activity?.isFinishing == false) { val config = context!!.config if (context.isRestrictedSAFOnlyRoot(path)) { activity?.runOnUiThread { hideProgressBar() } activity?.handleAndroidSAFDialog(path, openInSystemAppAllowed = true) { if (!it) { activity?.toast(R.string.no_storage_permissions) return@handleAndroidSAFDialog } val getProperChildCount = context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_LIST context.getAndroidSAFFileItems(path, context.config.shouldShowHidden(), getProperChildCount) { fileItems -> callback(path, getListItemsFromFileDirItems(fileItems)) } } } else if (context!!.isPathOnOTG(path) && config.OTGTreeUri.isNotEmpty()) { val getProperFileSize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0 context!!.getOTGItems(path, config.shouldShowHidden(), getProperFileSize) { callback(path, getListItemsFromFileDirItems(it)) } } else if (!config.enableRootAccess || !context!!.isPathOnRoot(path)) { getRegularItemsOf(path, callback) } else { RootHelpers(activity!!).getFiles(path, callback) } } } }
private fun getRegularItemsOf(path: String, callback: (originalPath: String, items: ArrayList<ListItem>) -> Unit) { val items = ArrayList<ListItem>() val files = File(path).listFiles()?.filterNotNull() if (context == null || files == null) { callback(path, items) return }
val isSortingBySize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0 val getProperChildCount = context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_LIST val lastModifieds = context!!.getFolderLastModifieds(path)
for (file in files) { val listItem = getListItemFromFile(file, isSortingBySize, lastModifieds, false) if (listItem != null) { if (wantedMimeTypes.any { isProperMimeType(it, file.absolutePath, file.isDirectory) }) { items.add(listItem) } } }
// send out the initial item list asap, get proper child count asynchronously as it can be slow callback(path, items)
if (getProperChildCount) { items.filter { it.mIsDirectory }.forEach { if (context != null) { val childrenCount = it.getDirectChildrenCount(activity as BaseSimpleActivity, showHidden) if (childrenCount != 0) { activity?.runOnUiThread { getRecyclerAdapter()?.updateChildCount(it.mPath, childrenCount) } } } } } }
private fun getListItemFromFile(file: File, isSortingBySize: Boolean, lastModifieds: HashMap<String, Long>, getProperChildCount: Boolean): ListItem? { val curPath = file.absolutePath val curName = file.name if (!showHidden && curName.startsWith(".")) { return null }
var lastModified = lastModifieds.remove(curPath) val isDirectory = file.isDirectory val children = if (isDirectory && getProperChildCount) file.getDirectChildrenCount(context, showHidden) else 0 val size = if (isDirectory) { if (isSortingBySize) { file.getProperSize(showHidden) } else { 0L } } else { file.length() }
if (lastModified == null) { lastModified = file.lastModified() }
return ListItem(curPath, curName, isDirectory, children, size, lastModified, false, false) }
private fun getListItemsFromFileDirItems(fileDirItems: ArrayList<FileDirItem>): ArrayList<ListItem> { val listItems = ArrayList<ListItem>() fileDirItems.forEach { val listItem = ListItem(it.path, it.name, it.isDirectory, it.children, it.size, it.modified, false, false) if (wantedMimeTypes.any { mimeType -> isProperMimeType(mimeType, it.path, it.isDirectory) }) { listItems.add(listItem) } } return listItems }
private fun itemClicked(item: FileDirItem) { if (item.isDirectory) { openDirectory(item.path) } else { clickedPath(item.path) } }
private fun openDirectory(path: String) { (activity as? MainActivity)?.apply { openedDirectory() } openPath(path) }
override fun searchQueryChanged(text: String) { lastSearchedText = text if (context == null) { return }
binding.apply { itemsSwipeRefresh.isEnabled = text.isEmpty() && activity?.config?.enablePullToRefresh != false when { text.isEmpty() -> { itemsFastscroller.beVisible() getRecyclerAdapter()?.updateItems(itemsIgnoringSearch) itemsPlaceholder.beGone() itemsPlaceholder2.beGone() hideProgressBar() }
text.length == 1 -> { itemsFastscroller.beGone() itemsPlaceholder.beVisible() itemsPlaceholder2.beVisible() hideProgressBar() }
else -> { showProgressBar() ensureBackgroundThread { val files = searchFiles(text, currentPath) files.sortBy { it.getParentPath() }
if (lastSearchedText != text) { return@ensureBackgroundThread }
val listItems = ArrayList<ListItem>()
var previousParent = "" files.forEach { val parent = it.mPath.getParentPath() if (!it.isDirectory && parent != previousParent && context != null) { val sectionTitle = ListItem(parent, context!!.humanizePath(parent), false, 0, 0, 0, true, false) listItems.add(sectionTitle) previousParent = parent }
if (it.isDirectory) { val sectionTitle = ListItem(it.path, context!!.humanizePath(it.path), true, 0, 0, 0, true, false) listItems.add(sectionTitle) previousParent = parent }
if (!it.isDirectory) { listItems.add(it) } }
activity?.runOnUiThread { getRecyclerAdapter()?.updateItems(listItems, text) itemsFastscroller.beVisibleIf(listItems.isNotEmpty()) itemsPlaceholder.beVisibleIf(listItems.isEmpty()) itemsPlaceholder2.beGone() hideProgressBar() } } } } } }
private fun searchFiles(text: String, path: String): ArrayList<ListItem> { val files = ArrayList<ListItem>() if (context == null) { return files }
val normalizedText = text.normalizeString() val sorting = context!!.config.getFolderSorting(path) FileDirItem.sorting = context!!.config.getFolderSorting(currentPath) val isSortingBySize = sorting and SORT_BY_SIZE != 0 File(path).listFiles()?.sortedBy { it.isDirectory }?.forEach { if (!showHidden && it.isHidden) { return@forEach }
if (it.isDirectory) { if (it.name.normalizeString().contains(normalizedText, true)) { val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false) if (fileDirItem != null) { files.add(fileDirItem) } }
files.addAll(searchFiles(text, it.absolutePath)) } else { if (it.name.normalizeString().contains(normalizedText, true)) { val fileDirItem = getListItemFromFile(it, isSortingBySize, HashMap(), false) if (fileDirItem != null) { files.add(fileDirItem) } } } } return files }
private fun searchClosed() { binding.apply { lastSearchedText = "" itemsSwipeRefresh.isEnabled = activity?.config?.enablePullToRefresh != false itemsFastscroller.beVisible() itemsPlaceholder.beGone() itemsPlaceholder2.beGone() hideProgressBar() } }
private fun createNewItem() { CreateNewItemDialog(activity as SimpleActivity, currentPath) { if (it) { refreshFragment() } else { activity?.toast(R.string.unknown_error_occurred) } } }
private fun getRecyclerAdapter() = binding.itemsList.adapter as? ItemsAdapter
private fun setupLayoutManager() { if (context!!.config.getFolderViewType(currentPath) == VIEW_TYPE_GRID) { currentViewType = VIEW_TYPE_GRID setupGridLayoutManager() } else { currentViewType = VIEW_TYPE_LIST setupListLayoutManager() }
binding.itemsList.adapter = null initZoomListener() addItems(storedItems, true) }
private fun setupGridLayoutManager() { val layoutManager = binding.itemsList.layoutManager as MyGridLayoutManager layoutManager.spanCount = context?.config?.fileColumnCnt ?: 3
layoutManager.spanSizeLookup = object : GridLayoutManager.SpanSizeLookup() { override fun getSpanSize(position: Int): Int { return if (getRecyclerAdapter()?.isASectionTitle(position) == true || getRecyclerAdapter()?.isGridTypeDivider(position) == true) { layoutManager.spanCount } else { 1 } } } }
private fun setupListLayoutManager() { val layoutManager = binding.itemsList.layoutManager as MyGridLayoutManager layoutManager.spanCount = 1 zoomListener = null }
private fun initZoomListener() { if (context?.config?.getFolderViewType(currentPath) == VIEW_TYPE_GRID) { val layoutManager = binding.itemsList.layoutManager as MyGridLayoutManager zoomListener = object : MyRecyclerView.MyZoomListener { override fun zoomIn() { if (layoutManager.spanCount > 1) { reduceColumnCount() getRecyclerAdapter()?.finishActMode() } }
override fun zoomOut() { if (layoutManager.spanCount < MAX_COLUMN_COUNT) { increaseColumnCount() getRecyclerAdapter()?.finishActMode() } } } } else { zoomListener = null } }
private fun increaseColumnCount() { if (currentViewType == VIEW_TYPE_GRID) { context!!.config.fileColumnCnt += 1 (activity as? MainActivity)?.updateFragmentColumnCounts() } }
private fun reduceColumnCount() { if (currentViewType == VIEW_TYPE_GRID) { context!!.config.fileColumnCnt -= 1 (activity as? MainActivity)?.updateFragmentColumnCounts() } }
override fun columnCountChanged() { (binding.itemsList.layoutManager as MyGridLayoutManager).spanCount = context!!.config.fileColumnCnt (activity as? MainActivity)?.refreshMenuItems() getRecyclerAdapter()?.apply { notifyItemRangeChanged(0, listItems.size) } }
fun showProgressBar() { binding.progressBar.show() }
private fun hideProgressBar() { binding.progressBar.hide() }
fun getBreadcrumbs() = binding.breadcrumbs
override fun toggleFilenameVisibility() { getRecyclerAdapter()?.updateDisplayFilenamesInGrid() }
override fun breadcrumbClicked(id: Int) { if (id == 0) { StoragePickerDialog(activity as SimpleActivity, currentPath, context!!.config.enableRootAccess, true) { getRecyclerAdapter()?.finishActMode() openPath(it) } } else { val item = binding.breadcrumbs.getItem(id) openPath(item.path) } }
override fun refreshFragment() { openPath(currentPath) }
override fun deleteFiles(files: ArrayList<FileDirItem>) { val hasFolder = files.any { it.isDirectory } handleFileDeleting(files, hasFolder) }
override fun selectedPaths(paths: ArrayList<String>) { (activity as MainActivity).pickedPaths(paths) }}package org.fossify.filemanager.fragments
import android.content.Contextimport android.util.AttributeSetimport android.widget.RelativeLayoutimport org.fossify.commons.extensions.*import org.fossify.commons.helpers.VIEW_TYPE_LISTimport org.fossify.commons.models.FileDirItemimport org.fossify.commons.views.MyFloatingActionButtonimport org.fossify.filemanager.Rimport org.fossify.filemanager.activities.MainActivityimport org.fossify.filemanager.activities.SimpleActivityimport org.fossify.filemanager.databinding.ItemsFragmentBindingimport org.fossify.filemanager.databinding.RecentsFragmentBindingimport org.fossify.filemanager.databinding.StorageFragmentBindingimport org.fossify.filemanager.extensions.isPathOnRootimport org.fossify.filemanager.extensions.tryOpenPathIntentimport org.fossify.filemanager.helpers.RootHelpers
abstract class MyViewPagerFragment<BINDING : MyViewPagerFragment.InnerBinding>(context: Context, attributeSet: AttributeSet) : RelativeLayout(context, attributeSet) { protected var activity: SimpleActivity? = null protected var currentViewType = VIEW_TYPE_LIST
var currentPath = "" var isGetContentIntent = false var isGetRingtonePicker = false var isPickMultipleIntent = false var wantedMimeTypes = listOf("") protected var isCreateDocumentIntent = false protected lateinit var innerBinding: BINDING
protected fun clickedPath(path: String) { if (isGetContentIntent || isCreateDocumentIntent) { (activity as MainActivity).pickedPath(path) } else if (isGetRingtonePicker) { if (path.isAudioFast()) { (activity as MainActivity).pickedRingtone(path) } else { activity?.toast(R.string.select_audio_file) } } else { activity?.tryOpenPathIntent(path, false) } }
fun updateIsCreateDocumentIntent(isCreateDocumentIntent: Boolean) { val iconId = if (isCreateDocumentIntent) { R.drawable.ic_check_vector } else { R.drawable.ic_plus_vector }
this.isCreateDocumentIntent = isCreateDocumentIntent val fabIcon = context.resources.getColoredDrawableWithColor(iconId, context.getProperPrimaryColor().getContrastColor()) innerBinding.itemsFab?.setImageDrawable(fabIcon) }
fun handleFileDeleting(files: ArrayList<FileDirItem>, hasFolder: Boolean) { val firstPath = files.firstOrNull()?.path if (firstPath == null || firstPath.isEmpty() || context == null) { return }
if (context!!.isPathOnRoot(firstPath)) { RootHelpers(activity!!).deleteFiles(files) } else { (activity as SimpleActivity).deleteFiles(files, hasFolder) { if (!it) { activity!!.runOnUiThread { activity!!.toast(R.string.unknown_error_occurred) } } } } }
protected fun isProperMimeType(wantedMimeType: String, path: String, isDirectory: Boolean): Boolean { return if (wantedMimeType.isEmpty() || wantedMimeType == "*/*" || isDirectory) { true } else { val fileMimeType = path.getMimeType() if (wantedMimeType.endsWith("/*")) { fileMimeType.substringBefore("/").equals(wantedMimeType.substringBefore("/"), true) } else { fileMimeType.equals(wantedMimeType, true) } } }
abstract fun setupFragment(activity: SimpleActivity)
abstract fun onResume(textColor: Int)
abstract fun refreshFragment()
abstract fun searchQueryChanged(text: String)
interface InnerBinding { val itemsFab: MyFloatingActionButton? }
class ItemsInnerBinding(val binding: ItemsFragmentBinding) : InnerBinding { override val itemsFab: MyFloatingActionButton = binding.itemsFab }
class RecentsInnerBinding(val binding: RecentsFragmentBinding) : InnerBinding { override val itemsFab: MyFloatingActionButton? = null }
class StorageInnerBinding(val binding: StorageFragmentBinding) : InnerBinding { override val itemsFab: MyFloatingActionButton? = null }}<?xml version="1.0" encoding="utf-8"?><org.fossify.filemanager.fragments.ItemsFragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/items_fragment" android:layout_width="match_parent" android:layout_height="match_parent">
<androidx.coordinatorlayout.widget.CoordinatorLayout android:id="@+id/items_coordinator" android:layout_width="match_parent" android:layout_height="match_parent">
<RelativeLayout android:id="@+id/items_wrapper" android:layout_width="match_parent" android:layout_height="wrap_content">
<org.fossify.commons.views.Breadcrumbs android:id="@+id/breadcrumbs" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/medium_margin" android:paddingStart="@dimen/activity_margin" android:paddingTop="@dimen/small_margin" android:paddingEnd="@dimen/small_margin" android:paddingBottom="@dimen/small_margin" />
<com.google.android.material.progressindicator.LinearProgressIndicator android:id="@+id/progress_bar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:indeterminate="true" android:visibility="gone" app:hideAnimationBehavior="outward" app:showAnimationBehavior="inward" app:showDelay="250" tools:visibility="visible" />
<org.fossify.commons.views.MyTextView android:id="@+id/items_placeholder" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/breadcrumbs" android:layout_centerHorizontal="true" android:alpha="0.8" android:gravity="center" android:paddingStart="@dimen/activity_margin" android:paddingEnd="@dimen/activity_margin" android:text="@string/no_items_found" android:textSize="@dimen/bigger_text_size" android:textStyle="italic" android:visibility="gone" />
<org.fossify.commons.views.MyTextView android:id="@+id/items_placeholder_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/items_placeholder" android:layout_centerHorizontal="true" android:alpha="0.8" android:background="?attr/selectableItemBackground" android:gravity="center" android:padding="@dimen/activity_margin" android:text="@string/type_2_characters" android:textSize="@dimen/bigger_text_size" android:textStyle="italic" android:visibility="gone" />
<org.fossify.filemanager.views.MySwipeRefreshLayout android:id="@+id/items_swipe_refresh" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/breadcrumbs">
<com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller android:id="@+id/items_fastscroller" android:layout_width="match_parent" android:layout_height="wrap_content" app:supportSwipeToRefresh="true">
<org.fossify.commons.views.MyRecyclerView android:id="@+id/items_list" android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" android:layoutAnimation="@anim/layout_animation" android:scrollbars="none" app:layoutManager="org.fossify.commons.views.MyGridLayoutManager" />
</com.qtalk.recyclerviewfastscroller.RecyclerViewFastScroller> </org.fossify.filemanager.views.MySwipeRefreshLayout> </RelativeLayout>
<org.fossify.commons.views.MyFloatingActionButton android:id="@+id/items_fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/activity_margin" android:src="@drawable/ic_plus_vector" />
</androidx.coordinatorlayout.widget.CoordinatorLayout></org.fossify.filemanager.fragments.ItemsFragment>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825package org.fossify.commons.compose.lists
import android.content.Contextimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.isSystemInDarkThemeimport androidx.compose.foundation.layout.*import androidx.compose.material3.TopAppBarScrollBehaviorimport androidx.compose.runtime.*import androidx.compose.ui.Modifierimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.graphics.lerpimport androidx.compose.ui.platform.LocalLayoutDirectionimport org.fossify.commons.compose.extensions.onEventValueimport org.fossify.commons.compose.system_ui_controller.rememberSystemUiControllerimport org.fossify.commons.compose.theme.LocalThemeimport org.fossify.commons.compose.theme.SimpleThemeimport org.fossify.commons.compose.theme.isNotLitWellimport org.fossify.commons.compose.theme.isSurfaceLitWellimport org.fossify.commons.compose.theme.model.Themeimport org.fossify.commons.extensions.getColoredMaterialStatusBarColorimport org.fossify.commons.extensions.getContrastColor
@Composableinternal fun SystemUISettingsScaffoldStatusBarColor(scrolledColor: Color) { val systemUiController = rememberSystemUiController() DisposableEffect(systemUiController) { systemUiController.statusBarDarkContentEnabled = scrolledColor.isNotLitWell() onDispose { } }}
@Composableinternal fun ScreenBoxSettingsScaffold(paddingValues: PaddingValues, modifier: Modifier = Modifier, content: @Composable BoxScope.() -> Unit) { val layoutDirection = LocalLayoutDirection.current Box( modifier = modifier .fillMaxSize() .background(SimpleTheme.colorScheme.surface) .padding( top = paddingValues.calculateTopPadding(), start = paddingValues.calculateStartPadding(layoutDirection), end = paddingValues.calculateEndPadding(layoutDirection) ) ) { content() }}
@Composableinternal fun statusBarAndContrastColor(context: Context): Pair<Int, Color> { val statusBarColor = onEventValue { context.getColoredMaterialStatusBarColor() } val contrastColor by remember(statusBarColor) { derivedStateOf { Color(statusBarColor.getContrastColor()) } } return Pair(statusBarColor, contrastColor)}
@Composableinternal fun transitionFractionAndScrolledColor( scrollBehavior: TopAppBarScrollBehavior, contrastColor: Color, darkIcons: Boolean = true,): Pair<Float, Color> { val systemUiController = rememberSystemUiController() val colorTransitionFraction = scrollBehavior.state.overlappedFraction val scrolledColor = lerp( start = if (isSurfaceLitWell()) Color.Black else Color.White, stop = contrastColor, fraction = if (colorTransitionFraction > 0.01f) 1f else 0f )
systemUiController.setStatusBarColor( color = Color.Transparent, darkIcons = scrolledColor.isNotLitWell() && darkIcons || (LocalTheme.current is Theme.SystemDefaultMaterialYou && !isSystemInDarkTheme()) ) return Pair(colorTransitionFraction, scrolledColor)}package org.fossify.commons.compose.lists
import androidx.compose.foundation.clickableimport androidx.compose.foundation.interaction.MutableInteractionSourceimport androidx.compose.foundation.layout.*import androidx.compose.foundation.shape.RoundedCornerShapeimport androidx.compose.material.icons.Iconsimport androidx.compose.material.icons.automirrored.filled.ArrowBackimport androidx.compose.material3.*import androidx.compose.runtime.Composableimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.draw.clipimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.graphics.toArgbimport androidx.compose.ui.platform.LocalLayoutDirectionimport androidx.compose.ui.res.stringResourceimport androidx.compose.ui.text.style.TextOverflowimport androidx.compose.ui.unit.dpimport org.fossify.commons.Rimport org.fossify.commons.compose.extensions.MyDevicesimport org.fossify.commons.compose.extensions.rememberMutableInteractionSourceimport org.fossify.commons.compose.theme.AppThemeSurfaceimport org.fossify.commons.compose.theme.SimpleTheme
@Composablefun SimpleScaffoldTopBar( modifier: Modifier = Modifier, title: String, scrolledColor: Color, navigationIconInteractionSource: MutableInteractionSource = rememberMutableInteractionSource(), scrollBehavior: TopAppBarScrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()), statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color, goBack: () -> Unit,) { TopAppBar( title = { Text( text = title, modifier = Modifier.fillMaxWidth(), color = scrolledColor, maxLines = 1, overflow = TextOverflow.Ellipsis ) }, navigationIcon = { SimpleNavigationIcon( goBack = goBack, navigationIconInteractionSource = navigationIconInteractionSource, iconColor = scrolledColor ) }, scrollBehavior = scrollBehavior, colors = simpleTopAppBarColors(statusBarColor, colorTransitionFraction, contrastColor), modifier = modifier.topAppBarPaddings(), windowInsets = topAppBarInsets() )}
@Composablefun SimpleScaffoldTopBar( modifier: Modifier = Modifier, title: @Composable (scrolledColor: Color) -> Unit, scrolledColor: Color, navigationIconInteractionSource: MutableInteractionSource = rememberMutableInteractionSource(), scrollBehavior: TopAppBarScrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()), statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color, goBack: () -> Unit,) { TopAppBar( title = { title(scrolledColor) }, navigationIcon = { SimpleNavigationIcon( goBack = goBack, navigationIconInteractionSource = navigationIconInteractionSource, iconColor = scrolledColor ) }, scrollBehavior = scrollBehavior, colors = simpleTopAppBarColors(statusBarColor, colorTransitionFraction, contrastColor), modifier = modifier.topAppBarPaddings(), windowInsets = topAppBarInsets() )}
@Composablefun SimpleScaffoldTopBar( modifier: Modifier = Modifier, title: @Composable (scrolledColor: Color) -> Unit, actions: @Composable RowScope.() -> Unit, scrolledColor: Color, navigationIconInteractionSource: MutableInteractionSource = rememberMutableInteractionSource(), scrollBehavior: TopAppBarScrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()), statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color, goBack: () -> Unit,) { TopAppBar( title = { title(scrolledColor) }, navigationIcon = { SimpleNavigationIcon( goBack = goBack, navigationIconInteractionSource = navigationIconInteractionSource, iconColor = scrolledColor ) }, actions = actions, scrollBehavior = scrollBehavior, colors = simpleTopAppBarColors(statusBarColor, colorTransitionFraction, contrastColor), modifier = modifier.topAppBarPaddings(), windowInsets = topAppBarInsets() )}
@Composablefun simpleTopAppBarColors( statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color) = TopAppBarDefaults.topAppBarColors( scrolledContainerColor = Color(statusBarColor), containerColor = if (colorTransitionFraction == 1f) contrastColor else SimpleTheme.colorScheme.surface, navigationIconContentColor = if (colorTransitionFraction == 1f) contrastColor else SimpleTheme.colorScheme.surface)
@Composablefun topAppBarInsets() = TopAppBarDefaults.windowInsets.exclude(WindowInsets.navigationBars)
@Composablefun Modifier.topAppBarPaddings( paddingValues: PaddingValues = WindowInsets.navigationBars.asPaddingValues()): Modifier { val layoutDirection = LocalLayoutDirection.current return padding( top = paddingValues.calculateTopPadding(), start = paddingValues.calculateStartPadding(layoutDirection), end = paddingValues.calculateEndPadding(layoutDirection) )}
@Composablefun SimpleNavigationIcon( modifier: Modifier = Modifier, navigationIconInteractionSource: MutableInteractionSource = rememberMutableInteractionSource(), goBack: () -> Unit, iconColor: Color? = null) { Box( modifier = modifier .size(48.dp) .padding(SimpleTheme.dimens.padding.small) .clip(RoundedCornerShape(50)) .clickable( interactionSource = navigationIconInteractionSource, indication = ripple( color = SimpleTheme.colorScheme.onSurface, bounded = true ), onClick = goBack ), contentAlignment = Alignment.Center ) { SimpleBackIcon(iconColor) }}
@Composablefun SimpleBackIcon(iconColor: Color?) { if (iconColor == null) { Icon( imageVector = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = stringResource(id = R.string.back), modifier = Modifier.size(SimpleTheme.dimens.icon.extraSmall) ) } else { Icon( imageVector = Icons.AutoMirrored.Filled.ArrowBack, contentDescription = stringResource(id = R.string.back), tint = iconColor, modifier = Modifier.size(SimpleTheme.dimens.icon.extraSmall) ) }}
@Composable@MyDevicesprivate fun SimpleScaffoldTopBarPreview() { AppThemeSurface { SimpleScaffoldTopBar( title = "SettingsScaffoldTopBar", scrolledColor = Color.Black, navigationIconInteractionSource = rememberMutableInteractionSource(), goBack = {}, statusBarColor = Color.Magenta.toArgb(), colorTransitionFraction = 1.0f, contrastColor = Color.White ) }}package org.fossify.commons.compose.lists
import androidx.compose.foundation.ScrollStateimport androidx.compose.foundation.interaction.MutableInteractionSourceimport androidx.compose.foundation.layout.*import androidx.compose.foundation.rememberScrollStateimport androidx.compose.foundation.verticalScrollimport androidx.compose.material.icons.Iconsimport androidx.compose.material.icons.filled.AccessTimeimport androidx.compose.material3.*import androidx.compose.runtime.Composableimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.input.nestedscroll.nestedScrollimport androidx.compose.ui.platform.LocalContextimport org.fossify.commons.compose.extensions.AdjustNavigationBarColorsimport org.fossify.commons.compose.extensions.MyDevicesimport org.fossify.commons.compose.extensions.rememberMutableInteractionSourceimport org.fossify.commons.compose.theme.AppThemeSurface
@Composablefun SimpleColumnScaffold( title: String, goBack: () -> Unit, modifier: Modifier = Modifier, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, scrollState: ScrollState = rememberScrollState(), content: @Composable (ColumnScope.(PaddingValues) -> Unit)) { val context = LocalContext.current val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { SimpleScaffoldTopBar( title = title, scrolledColor = scrolledColor, navigationIconInteractionSource = navigationIconInteractionSource, goBack = goBack, scrollBehavior = scrollBehavior, statusBarColor = statusBarColor, colorTransitionFraction = colorTransitionFraction, contrastColor = contrastColor ) }, ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { Column( Modifier .matchParentSize() .verticalScroll(scrollState), horizontalAlignment = horizontalAlignment, verticalArrangement = verticalArrangement ) { content(paddingValues) Spacer(modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding())) } } }}
@Composablefun SimpleColumnScaffold( modifier: Modifier = Modifier, title: @Composable (scrolledColor: Color) -> Unit, goBack: () -> Unit, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, scrollState: ScrollState = rememberScrollState(), content: @Composable (ColumnScope.(PaddingValues) -> Unit)) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { SimpleScaffoldTopBar( title = title, scrolledColor = scrolledColor, navigationIconInteractionSource = navigationIconInteractionSource, goBack = goBack, scrollBehavior = scrollBehavior, statusBarColor = statusBarColor, colorTransitionFraction = colorTransitionFraction, contrastColor = contrastColor ) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { Column( modifier = Modifier .matchParentSize() .verticalScroll(scrollState), verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, ) { content(paddingValues) Spacer(modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding())) } } }}
@Composablefun SimpleColumnScaffold( modifier: Modifier = Modifier, title: @Composable (scrolledColor: Color) -> Unit, actions: @Composable() (RowScope.() -> Unit), goBack: () -> Unit, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, scrollState: ScrollState = rememberScrollState(), content: @Composable (ColumnScope.(PaddingValues) -> Unit)) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { SimpleScaffoldTopBar( title = title, scrolledColor = scrolledColor, navigationIconInteractionSource = navigationIconInteractionSource, goBack = goBack, scrollBehavior = scrollBehavior, statusBarColor = statusBarColor, colorTransitionFraction = colorTransitionFraction, contrastColor = contrastColor, actions = actions ) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { Column( modifier = Modifier .matchParentSize() .verticalScroll(scrollState), verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, ) { content(paddingValues) Spacer(modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding())) } } }}
@Composablefun SimpleColumnScaffold( modifier: Modifier = Modifier, customTopBar: @Composable (scrolledColor: Color, navigationInteractionSource: MutableInteractionSource, scrollBehavior: TopAppBarScrollBehavior, statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color) -> Unit, goBack: () -> Unit, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, scrollState: ScrollState = rememberScrollState(), content: @Composable() (ColumnScope.(PaddingValues) -> Unit)) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { customTopBar(scrolledColor, navigationIconInteractionSource, scrollBehavior, statusBarColor, colorTransitionFraction, contrastColor) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { Column( modifier = Modifier .matchParentSize() .verticalScroll(scrollState), verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, ) { content(paddingValues) Spacer(modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding())) } } }}
@MyDevices@Composableprivate fun SimpleColumnScaffoldPreview() { AppThemeSurface { SimpleColumnScaffold(title = "About", goBack = {}) { ListItem( headlineContent = { Text(text = "Some text") }, leadingContent = { Icon(imageVector = Icons.Filled.AccessTime, contentDescription = null) } ) } }}package org.fossify.commons.compose.lists
import androidx.compose.foundation.gestures.FlingBehaviorimport androidx.compose.foundation.gestures.ScrollableDefaultsimport androidx.compose.foundation.interaction.MutableInteractionSourceimport androidx.compose.foundation.layout.*import androidx.compose.foundation.lazy.LazyColumnimport androidx.compose.foundation.lazy.LazyListScopeimport androidx.compose.foundation.lazy.LazyListStateimport androidx.compose.foundation.lazy.rememberLazyListStateimport androidx.compose.material.icons.Iconsimport androidx.compose.material.icons.filled.AccessTimeimport androidx.compose.material3.*import androidx.compose.runtime.Composableimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.input.nestedscroll.nestedScrollimport androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.unit.dpimport org.fossify.commons.compose.extensions.AdjustNavigationBarColorsimport org.fossify.commons.compose.extensions.MyDevicesimport org.fossify.commons.compose.extensions.plusimport org.fossify.commons.compose.extensions.rememberMutableInteractionSourceimport org.fossify.commons.compose.theme.AppThemeSurface
@Composablefun SimpleLazyListScaffold( title: String, goBack: () -> Unit, modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, state: LazyListState = rememberLazyListState(), lazyContent: LazyListScope.(PaddingValues) -> Unit) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { SimpleScaffoldTopBar( title = title, scrolledColor = scrolledColor, navigationIconInteractionSource = navigationIconInteractionSource, goBack = goBack, scrollBehavior = scrollBehavior, statusBarColor = statusBarColor, colorTransitionFraction = colorTransitionFraction, contrastColor = contrastColor ) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { LazyColumn( modifier = Modifier .matchParentSize(), state = state, contentPadding = contentPadding.plus(PaddingValues(bottom = paddingValues.calculateBottomPadding())), reverseLayout = reverseLayout, verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, flingBehavior = flingBehavior, userScrollEnabled = userScrollEnabled ) { lazyContent(paddingValues) } } }}
@Composablefun SimpleLazyListScaffold( modifier: Modifier = Modifier, title: @Composable (scrolledColor: Color) -> Unit, goBack: () -> Unit, contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, state: LazyListState = rememberLazyListState(), lazyContent: LazyListScope.(PaddingValues) -> Unit) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { SimpleScaffoldTopBar( title = title, scrolledColor = scrolledColor, navigationIconInteractionSource = navigationIconInteractionSource, goBack = goBack, scrollBehavior = scrollBehavior, statusBarColor = statusBarColor, colorTransitionFraction = colorTransitionFraction, contrastColor = contrastColor ) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { LazyColumn( modifier = Modifier .matchParentSize(), state = state, contentPadding = contentPadding.plus(PaddingValues(bottom = paddingValues.calculateBottomPadding())), reverseLayout = reverseLayout, verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, flingBehavior = flingBehavior, userScrollEnabled = userScrollEnabled, ) { lazyContent(paddingValues) } } }}
@Composablefun SimpleLazyListScaffold( modifier: Modifier = Modifier, title: @Composable (scrolledColor: Color) -> Unit, actions: @Composable() (RowScope.() -> Unit), goBack: () -> Unit, contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, state: LazyListState = rememberLazyListState(), lazyContent: LazyListScope.(PaddingValues) -> Unit) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { SimpleScaffoldTopBar( title = title, scrolledColor = scrolledColor, navigationIconInteractionSource = navigationIconInteractionSource, goBack = goBack, scrollBehavior = scrollBehavior, statusBarColor = statusBarColor, colorTransitionFraction = colorTransitionFraction, contrastColor = contrastColor, actions = actions ) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { LazyColumn( modifier = Modifier .matchParentSize(), state = state, contentPadding = contentPadding.plus(PaddingValues(bottom = paddingValues.calculateBottomPadding())), reverseLayout = reverseLayout, verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, flingBehavior = flingBehavior, userScrollEnabled = userScrollEnabled ) { lazyContent(paddingValues) } } }}
@Composablefun SimpleLazyListScaffold( modifier: Modifier = Modifier, topBar: @Composable (scrolledColor: Color, navigationInteractionSource: MutableInteractionSource, scrollBehavior: TopAppBarScrollBehavior, statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color) -> Unit, contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = if (!reverseLayout) Arrangement.Top else Arrangement.Bottom, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, state: LazyListState = rememberLazyListState(), lazyContent: LazyListScope.(PaddingValues) -> Unit) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { topBar(scrolledColor, navigationIconInteractionSource, scrollBehavior, statusBarColor, colorTransitionFraction, contrastColor) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { LazyColumn( modifier = Modifier .matchParentSize(), state = state, contentPadding = contentPadding.plus(PaddingValues(bottom = paddingValues.calculateBottomPadding())), reverseLayout = reverseLayout, verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, flingBehavior = flingBehavior, userScrollEnabled = userScrollEnabled ) { lazyContent(paddingValues) } } }}
@Composablefun SimpleScaffold( modifier: Modifier = Modifier, darkStatusBarIcons: Boolean = true, customTopBar: @Composable (scrolledColor: Color, navigationInteractionSource: MutableInteractionSource, scrollBehavior: TopAppBarScrollBehavior, statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color) -> Unit, customContent: @Composable (BoxScope.(PaddingValues) -> Unit)) { val context = LocalContext.current
val (statusBarColor, contrastColor) = statusBarAndContrastColor(context) val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(rememberTopAppBarState()) val (colorTransitionFraction, scrolledColor) = transitionFractionAndScrolledColor(scrollBehavior, contrastColor, darkStatusBarIcons) SystemUISettingsScaffoldStatusBarColor(scrolledColor) val navigationIconInteractionSource = rememberMutableInteractionSource() AdjustNavigationBarColors()
Scaffold( modifier = modifier .fillMaxSize() .nestedScroll(scrollBehavior.nestedScrollConnection), topBar = { customTopBar(scrolledColor, navigationIconInteractionSource, scrollBehavior, statusBarColor, colorTransitionFraction, contrastColor) } ) { paddingValues -> ScreenBoxSettingsScaffold(paddingValues) { customContent(paddingValues) } }}
@MyDevices@Composableprivate fun SimpleLazyListScaffoldPreview() { AppThemeSurface { SimpleLazyListScaffold(title = "About", goBack = {}) { item { ListItem(headlineContent = { Text(text = "Some text") }, leadingContent = { Icon(imageVector = Icons.Filled.AccessTime, contentDescription = null) }) } } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754 1 package org.fossify.filemanager.activities 2 3 import android.app.Activity 4 import android.content.ClipData 5 import android.content.Intent 6 import android.graphics.drawable.Drawable 7 import android.media.RingtoneManager 8 import android.os.Bundle 9 import android.os.Handler 10 import android.widget.ImageView 11 import android.widget.TextView 12 import androidx.viewpager.widget.ViewPager 13 import com.stericson.RootTools.RootTools 14 import me.grantland.widget.AutofitHelper 15 import org.fossify.commons.dialogs.RadioGroupDialog 16 import org.fossify.commons.extensions.appLaunched 17 import org.fossify.commons.extensions.appLockManager 18 import org.fossify.commons.extensions.beGoneIf 19 import org.fossify.commons.extensions.checkWhatsNew 20 import org.fossify.commons.extensions.getBottomNavigationBackgroundColor 21 import org.fossify.commons.extensions.getColoredDrawableWithColor 22 import org.fossify.commons.extensions.getFilePublicUri 23 import org.fossify.commons.extensions.getMimeType 24 import org.fossify.commons.extensions.getProperBackgroundColor 25 import org.fossify.commons.extensions.getProperTextColor 26 import org.fossify.commons.extensions.getRealPathFromURI 27 import org.fossify.commons.extensions.getStorageDirectories 28 import org.fossify.commons.extensions.getTimeFormat 29 import org.fossify.commons.extensions.handleHiddenFolderPasswordProtection 30 import org.fossify.commons.extensions.hasOTGConnected 31 import org.fossify.commons.extensions.hasPermission 32 import org.fossify.commons.extensions.hideKeyboard 33 import org.fossify.commons.extensions.humanizePath 34 import org.fossify.commons.extensions.internalStoragePath 35 import org.fossify.commons.extensions.isPathOnOTG 36 import org.fossify.commons.extensions.isPathOnSD 37 import org.fossify.commons.extensions.launchMoreAppsFromUsIntent 38 import org.fossify.commons.extensions.onGlobalLayout 39 import org.fossify.commons.extensions.onTabSelectionChanged 40 import org.fossify.commons.extensions.sdCardPath 41 import org.fossify.commons.extensions.toast 42 import org.fossify.commons.extensions.updateBottomTabItemColors 43 import org.fossify.commons.extensions.viewBinding 44 import org.fossify.commons.helpers.LICENSE_AUTOFITTEXTVIEW 45 import org.fossify.commons.helpers.LICENSE_GESTURE_VIEWS 46 import org.fossify.commons.helpers.LICENSE_GLIDE 47 import org.fossify.commons.helpers.LICENSE_PATTERN 48 import org.fossify.commons.helpers.LICENSE_REPRINT 49 import org.fossify.commons.helpers.LICENSE_ZIP4J 50 import org.fossify.commons.helpers.PERMISSION_WRITE_STORAGE 51 import org.fossify.commons.helpers.TAB_FILES 52 import org.fossify.commons.helpers.TAB_RECENT_FILES 53 import org.fossify.commons.helpers.TAB_STORAGE_ANALYSIS 54 import org.fossify.commons.helpers.VIEW_TYPE_GRID 55 import org.fossify.commons.helpers.ensureBackgroundThread 56 import org.fossify.commons.models.FAQItem 57 import org.fossify.commons.models.RadioItem 58 import org.fossify.commons.models.Release 59 import org.fossify.filemanager.BuildConfig 60 import org.fossify.filemanager.R 61 import org.fossify.filemanager.adapters.ViewPagerAdapter 62 import org.fossify.filemanager.databinding.ActivityMainBinding 63 import org.fossify.filemanager.dialogs.ChangeSortingDialog 64 import org.fossify.filemanager.dialogs.ChangeViewTypeDialog 65 import org.fossify.filemanager.dialogs.InsertFilenameDialog 66 import org.fossify.filemanager.extensions.config 67 import org.fossify.filemanager.extensions.tryOpenPathIntent 68 import org.fossify.filemanager.fragments.ItemsFragment 69 import org.fossify.filemanager.fragments.MyViewPagerFragment 70 import org.fossify.filemanager.fragments.RecentsFragment 71 import org.fossify.filemanager.fragments.StorageFragment 72 import org.fossify.filemanager.helpers.MAX_COLUMN_COUNT 73 import org.fossify.filemanager.helpers.RootHelpers 74 import org.fossify.filemanager.interfaces.ItemOperationsListener 75 import java.io.File 76 77 class MainActivity : SimpleActivity() { 78 override var isSearchBarEnabled = true 79 80 companion object { 81 private const val BACK_PRESS_TIMEOUT = 5000 82 private const val PICKED_PATH = "picked_path" 83 } 84 85 private val binding by viewBinding(ActivityMainBinding::inflate) 86 87 private var wasBackJustPressed = false 88 private var mTabsToShow = ArrayList<Int>() 89 90 private var mStoredFontSize = 0 91 private var mStoredDateFormat = "" 92 private var mStoredTimeFormat = "" 93 private var mStoredShowTabs = 0 94 95 override fun onCreate(savedInstanceState: Bundle?) { 96 super.onCreate(savedInstanceState) 97 setContentView(binding.root) 98 appLaunched(BuildConfig.APPLICATION_ID) 99 setupOptionsMenu() 100 refreshMenuItems() 101 mTabsToShow = getTabsList() 102 103 if (!config.wasStorageAnalysisTabAdded) { 104 config.wasStorageAnalysisTabAdded = true 105 if (config.showTabs and TAB_STORAGE_ANALYSIS == 0) { 106 config.showTabs += TAB_STORAGE_ANALYSIS 107 } 108 } 109 110 storeStateVariables() 111 setupTabs() 112 113 setupEdgeToEdge(padBottomImeAndSystem = listOf(binding.mainTabsHolder)) 114 115 if (savedInstanceState == null) { 116 config.temporarilyShowHidden = false 117 initFragments() 118 tryInitFileManager() 119 checkWhatsNewDialog() 120 checkIfRootAvailable() 121 checkInvalidFavorites() 122 } 123 } 124 125 override fun onResume() { 126 super.onResume() 127 if (mStoredShowTabs != config.showTabs) { 128 config.lastUsedViewPagerPage = 0 129 System.exit(0) 130 return 131 } 132 133 refreshMenuItems() 134 updateMenuColors() 135 setupTabColors() 136 137 getAllFragments().forEach { 138 it?.onResume(getProperTextColor()) 139 } 140 141 if (mStoredFontSize != config.fontSize) { 142 getAllFragments().forEach { 143 (it as? ItemOperationsListener)?.setupFontSize() 144 } 145 } 146 147 if (mStoredDateFormat != config.dateFormat || mStoredTimeFormat != getTimeFormat()) { 148 getAllFragments().forEach { 149 (it as? ItemOperationsListener)?.setupDateTimeFormat() 150 } 151 } 152 153 if (binding.mainViewPager.adapter == null) { 154 initFragments() 155 } 156 } 157 158 override fun onPause() { 159 super.onPause() 160 storeStateVariables() 161 config.lastUsedViewPagerPage = binding.mainViewPager.currentItem 162 } 163 164 override fun onBackPressedCompat(): Boolean { 165 val currentFragment = getCurrentFragment() 166 if (binding.mainMenu.isSearchOpen) { 167 binding.mainMenu.closeSearch() 168 return true 169 } else if (currentFragment is RecentsFragment || currentFragment is StorageFragment) { 170 return false 171 } else if ((currentFragment as ItemsFragment).getBreadcrumbsCount() <= 1) { 172 if (!wasBackJustPressed && config.pressBackTwice) { 173 wasBackJustPressed = true 174 toast(R.string.press_back_again) 175 Handler().postDelayed({ 176 wasBackJustPressed = false 177 }, BACK_PRESS_TIMEOUT.toLong()) 178 return true 179 } else { 180 appLockManager.lock() 181 finish() 182 return true 183 } 184 } else { 185 openPath(currentFragment.getParentBreadcrumbPath()!!) 186 return true 187 } 188 } 189 190 fun refreshMenuItems() { 191 val currentFragment = getCurrentFragment() ?: return 192 val isCreateDocumentIntent = intent.action == Intent.ACTION_CREATE_DOCUMENT 193 val currentViewType = config.getFolderViewType(currentFragment.currentPath) 194 val favorites = config.favorites 195 196 binding.mainMenu.requireToolbar().menu.apply { 197 findItem(R.id.sort).isVisible = currentFragment is ItemsFragment 198 findItem(R.id.change_view_type).isVisible = currentFragment !is StorageFragment 199 200 findItem(R.id.add_favorite).isVisible = currentFragment is ItemsFragment && !favorites.contains(currentFragment.currentPath) 201 findItem(R.id.remove_favorite).isVisible = currentFragment is ItemsFragment && favorites.contains(currentFragment.currentPath) 202 findItem(R.id.go_to_favorite).isVisible = currentFragment is ItemsFragment && favorites.isNotEmpty() 203 204 findItem(R.id.toggle_filename).isVisible = currentViewType == VIEW_TYPE_GRID && currentFragment !is StorageFragment 205 findItem(R.id.go_home).isVisible = currentFragment is ItemsFragment && currentFragment.currentPath != config.homeFolder 206 findItem(R.id.set_as_home).isVisible = currentFragment is ItemsFragment && currentFragment.currentPath != config.homeFolder 207 208 findItem(R.id.temporarily_show_hidden).isVisible = !config.shouldShowHidden() && currentFragment !is StorageFragment 209 findItem(R.id.stop_showing_hidden).isVisible = config.temporarilyShowHidden && currentFragment !is StorageFragment 210 211 findItem(R.id.column_count).isVisible = currentViewType == VIEW_TYPE_GRID && currentFragment !is StorageFragment 212 213 findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations) 214 findItem(R.id.settings).isVisible = !isCreateDocumentIntent 215 findItem(R.id.about).isVisible = !isCreateDocumentIntent 216 } 217 } 218 219 private fun setupOptionsMenu() { 220 binding.mainMenu.apply { 221 requireToolbar().inflateMenu(R.menu.menu) 222 toggleHideOnScroll(false) 223 setupMenu() 224 225 onSearchClosedListener = { 226 getAllFragments().forEach { 227 it?.searchQueryChanged("") 228 } 229 } 230 231 onSearchTextChangedListener = { text -> 232 getCurrentFragment()?.searchQueryChanged(text) 233 } 234 235 requireToolbar().setOnMenuItemClickListener { menuItem -> 236 if (getCurrentFragment() == null) { 237 return@setOnMenuItemClickListener true 238 } 239 240 when (menuItem.itemId) { 241 R.id.go_home -> goHome() 242 R.id.go_to_favorite -> goToFavorite() 243 R.id.sort -> showSortingDialog() 244 R.id.add_favorite -> addFavorite() 245 R.id.remove_favorite -> removeFavorite() 246 R.id.toggle_filename -> toggleFilenameVisibility() 247 R.id.set_as_home -> setAsHome() 248 R.id.change_view_type -> changeViewType() 249 R.id.temporarily_show_hidden -> tryToggleTemporarilyShowHidden() 250 R.id.stop_showing_hidden -> tryToggleTemporarilyShowHidden() 251 R.id.column_count -> changeColumnCount() 252 R.id.more_apps_from_us -> launchMoreAppsFromUsIntent() 253 R.id.settings -> launchSettings() 254 R.id.about -> launchAbout() 255 else -> return@setOnMenuItemClickListener false 256 } 257 return@setOnMenuItemClickListener true 258 } 259 } 260 } 261 262 override fun onSaveInstanceState(outState: Bundle) { 263 super.onSaveInstanceState(outState) 264 outState.putString(PICKED_PATH, getItemsFragment()?.currentPath ?: "") 265 } 266 267 override fun onRestoreInstanceState(savedInstanceState: Bundle) { 268 super.onRestoreInstanceState(savedInstanceState) 269 val path = savedInstanceState.getString(PICKED_PATH) ?: internalStoragePath 270 271 if (binding.mainViewPager.adapter == null) { 272 binding.mainViewPager.onGlobalLayout { 273 openPath(path, true) 274 } 275 } else { 276 openPath(path, true) 277 } 278 } 279 280 private fun updateMenuColors() { 281 binding.mainMenu.updateColors() 282 } 283 284 private fun storeStateVariables() { 285 config.apply { 286 mStoredFontSize = fontSize 287 mStoredDateFormat = dateFormat 288 mStoredTimeFormat = context.getTimeFormat() 289 mStoredShowTabs = showTabs 290 } 291 } 292 293 private fun tryInitFileManager() { 294 val hadPermission = hasStoragePermission() 295 handleStoragePermission { 296 checkOTGPath() 297 if (it) { 298 if (binding.mainViewPager.adapter == null) { 299 initFragments() 300 } 301 302 binding.mainViewPager.onGlobalLayout { 303 initFileManager(!hadPermission) 304 } 305 } else { 306 toast(R.string.no_storage_permissions) 307 finish() 308 } 309 } 310 } 311 312 private fun initFileManager(refreshRecents: Boolean) { 313 if (intent.action == Intent.ACTION_VIEW && intent.data != null) { 314 val data = intent.data 315 if (data?.scheme == "file") { 316 openPath(data.path!!) 317 } else { 318 val path = getRealPathFromURI(data!!) 319 if (path != null) { 320 openPath(path) 321 } else { 322 openPath(config.homeFolder) 323 } 324 } 325 326 if (!File(data.path!!).isDirectory) { 327 tryOpenPathIntent(data.path!!, false, finishActivity = true) 328 } 329 330 binding.mainViewPager.currentItem = 0 331 } else { 332 openPath(config.homeFolder) 333 } 334 335 if (refreshRecents) { 336 getRecentsFragment()?.refreshFragment() 337 } 338 } 339 340 private fun initFragments() { 341 binding.mainViewPager.apply { 342 adapter = ViewPagerAdapter(this@MainActivity, mTabsToShow) 343 offscreenPageLimit = 2 344 addOnPageChangeListener(object : ViewPager.OnPageChangeListener { 345 override fun onPageScrollStateChanged(state: Int) {} 346 347 override fun onPageScrolled(position: Int, positionOffset: Float, positionOffsetPixels: Int) {} 348 349 override fun onPageSelected(position: Int) { 350 binding.mainTabsHolder.getTabAt(position)?.select() 351 getAllFragments().forEach { 352 (it as? ItemOperationsListener)?.finishActMode() 353 } 354 refreshMenuItems() 355 } 356 }) 357 currentItem = config.lastUsedViewPagerPage 358 359 onGlobalLayout { 360 refreshMenuItems() 361 } 362 } 363 } 364 365 private fun setupTabs() { 366 binding.mainTabsHolder.removeAllTabs() 367 val action = intent.action 368 val isPickFileIntent = action == RingtoneManager.ACTION_RINGTONE_PICKER 369 || action == Intent.ACTION_GET_CONTENT 370 || action == Intent.ACTION_PICK 371 val isCreateDocumentIntent = action == Intent.ACTION_CREATE_DOCUMENT 372 373 if (isPickFileIntent) { 374 mTabsToShow.remove(TAB_STORAGE_ANALYSIS) 375 if (mTabsToShow.none { it and config.showTabs != 0 }) { 376 config.showTabs = TAB_FILES 377 mStoredShowTabs = TAB_FILES 378 mTabsToShow = arrayListOf(TAB_FILES) 379 } 380 } else if (isCreateDocumentIntent) { 381 mTabsToShow.clear() 382 mTabsToShow = arrayListOf(TAB_FILES) 383 } 384 385 mTabsToShow.forEachIndexed { index, value -> 386 if (config.showTabs and value != 0) { 387 binding.mainTabsHolder.newTab().setCustomView(R.layout.bottom_tablayout_item).apply { 388 customView?.findViewById<ImageView>(R.id.tab_item_icon)?.setImageDrawable(getTabIcon(index)) 389 customView?.findViewById<TextView>(R.id.tab_item_label)?.text = getTabLabel(index) 390 AutofitHelper.create(customView?.findViewById(R.id.tab_item_label)) 391 binding.mainTabsHolder.addTab(this) 392 } 393 } 394 } 395 396 binding.mainTabsHolder.apply { 397 onTabSelectionChanged( 398 tabUnselectedAction = { 399 updateBottomTabItemColors(it.customView, false, getDeselectedTabDrawableIds()[it.position]) 400 }, 401 tabSelectedAction = { 402 binding.mainMenu.closeSearch() 403 binding.mainViewPager.currentItem = it.position 404 updateBottomTabItemColors(it.customView, true, getSelectedTabDrawableIds()[it.position]) 405 } 406 ) 407 408 beGoneIf(tabCount == 1) 409 } 410 } 411 412 private fun setupTabColors() { 413 binding.apply { 414 val activeView = mainTabsHolder.getTabAt(mainViewPager.currentItem)?.customView 415 updateBottomTabItemColors(activeView, true, getSelectedTabDrawableIds()[mainViewPager.currentItem]) 416 417 getInactiveTabIndexes(mainViewPager.currentItem).forEach { index -> 418 val inactiveView = mainTabsHolder.getTabAt(index)?.customView 419 updateBottomTabItemColors(inactiveView, false, getDeselectedTabDrawableIds()[index]) 420 } 421 422 val bottomBarColor = getBottomNavigationBackgroundColor() 423 mainTabsHolder.setBackgroundColor(bottomBarColor) 424 } 425 } 426 427 private fun getTabIcon(position: Int): Drawable { 428 val drawableId = when (position) { 429 0 -> R.drawable.ic_folder_vector 430 1 -> R.drawable.ic_clock_vector 431 else -> R.drawable.ic_storage_vector 432 } 433 434 return resources.getColoredDrawableWithColor(drawableId, getProperTextColor()) 435 } 436 437 private fun getTabLabel(position: Int): String { 438 val stringId = when (position) { 439 0 -> R.string.files_tab 440 1 -> R.string.recents 441 else -> R.string.storage 442 } 443 444 return resources.getString(stringId) 445 } 446 447 private fun checkOTGPath() { 448 ensureBackgroundThread { 449 if (!config.wasOTGHandled && hasPermission(PERMISSION_WRITE_STORAGE) && hasOTGConnected() && config.OTGPath.isEmpty()) { 450 getStorageDirectories().firstOrNull { it.trimEnd('/') != internalStoragePath && it.trimEnd('/') != sdCardPath }?.apply { 451 config.wasOTGHandled = true 452 config.OTGPath = trimEnd('/') 453 } 454 } 455 } 456 } 457 458 private fun openPath(path: String, forceRefresh: Boolean = false) { 459 var newPath = path 460 val file = File(path) 461 if (config.OTGPath.isNotEmpty() && config.OTGPath == path.trimEnd('/')) { 462 newPath = path 463 } else if (file.exists() && !file.isDirectory) { 464 newPath = file.parent 465 } else if (!file.exists() && !isPathOnOTG(newPath)) { 466 newPath = internalStoragePath 467 } 468 469 getItemsFragment()?.openPath(newPath, forceRefresh) 470 } 471 472 private fun goHome() { 473 if (config.homeFolder != getCurrentFragment()!!.currentPath) { 474 openPath(config.homeFolder) 475 } 476 } 477 478 private fun showSortingDialog() { 479 ChangeSortingDialog(this, getCurrentFragment()!!.currentPath) { 480 (getCurrentFragment() as? ItemsFragment)?.refreshFragment() 481 } 482 } 483 484 private fun addFavorite() { 485 config.addFavorite(getCurrentFragment()!!.currentPath) 486 refreshMenuItems() 487 } 488 489 private fun removeFavorite() { 490 config.removeFavorite(getCurrentFragment()!!.currentPath) 491 refreshMenuItems() 492 } 493 494 private fun toggleFilenameVisibility() { 495 config.displayFilenames = !config.displayFilenames 496 getAllFragments().forEach { 497 (it as? ItemOperationsListener)?.toggleFilenameVisibility() 498 } 499 } 500 501 private fun changeColumnCount() { 502 val items = ArrayList<RadioItem>() 503 for (i in 1..MAX_COLUMN_COUNT) { 504 items.add(RadioItem(i, resources.getQuantityString(R.plurals.column_counts, i, i))) 505 } 506 507 val currentColumnCount = config.fileColumnCnt 508 RadioGroupDialog(this, items, config.fileColumnCnt) { 509 val newColumnCount = it as Int 510 if (currentColumnCount != newColumnCount) { 511 config.fileColumnCnt = newColumnCount 512 getAllFragments().forEach { 513 (it as? ItemOperationsListener)?.columnCountChanged() 514 } 515 } 516 } 517 } 518 519 fun updateFragmentColumnCounts() { 520 getAllFragments().forEach { 521 (it as? ItemOperationsListener)?.columnCountChanged() 522 } 523 } 524 525 private fun goToFavorite() { 526 val favorites = config.favorites 527 val items = ArrayList<RadioItem>(favorites.size) 528 var currFavoriteIndex = -1 529 530 favorites.forEachIndexed { index, path -> 531 val visiblePath = humanizePath(path).replace("/", " / ") 532 items.add(RadioItem(index, visiblePath, path)) 533 if (path == getCurrentFragment()!!.currentPath) { 534 currFavoriteIndex = index 535 } 536 } 537 538 RadioGroupDialog(this, items, currFavoriteIndex, R.string.go_to_favorite) { 539 openPath(it.toString()) 540 } 541 } 542 543 private fun setAsHome() { 544 config.homeFolder = getCurrentFragment()!!.currentPath 545 toast(R.string.home_folder_updated) 546 } 547 548 private fun changeViewType() { 549 ChangeViewTypeDialog(this, getCurrentFragment()!!.currentPath, getCurrentFragment() is ItemsFragment) { 550 getAllFragments().forEach { 551 it?.refreshFragment() 552 } 553 } 554 } 555 556 private fun tryToggleTemporarilyShowHidden() { 557 if (config.temporarilyShowHidden) { 558 toggleTemporarilyShowHidden(false) 559 } else { 560 handleHiddenFolderPasswordProtection { 561 toggleTemporarilyShowHidden(true) 562 } 563 } 564 } 565 566 private fun toggleTemporarilyShowHidden(show: Boolean) { 567 config.temporarilyShowHidden = show 568 getAllFragments().forEach { 569 it?.refreshFragment() 570 } 571 } 572 573 private fun launchSettings() { 574 hideKeyboard() 575 startActivity(Intent(applicationContext, SettingsActivity::class.java)) 576 } 577 578 private fun launchAbout() { 579 val licenses = LICENSE_GLIDE or LICENSE_PATTERN or LICENSE_REPRINT or LICENSE_GESTURE_VIEWS or LICENSE_AUTOFITTEXTVIEW or LICENSE_ZIP4J 580 581 val faqItems = arrayListOf( 582 FAQItem(R.string.faq_3_title_commons, R.string.faq_3_text_commons), 583 FAQItem(R.string.faq_9_title_commons, R.string.faq_9_text_commons) 584 ) 585 586 if (!resources.getBoolean(R.bool.hide_google_relations)) { 587 faqItems.add(FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons)) 588 faqItems.add(FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons)) 589 faqItems.add(FAQItem(R.string.faq_7_title_commons, R.string.faq_7_text_commons)) 590 faqItems.add(FAQItem(R.string.faq_10_title_commons, R.string.faq_10_text_commons)) 591 } 592 593 startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true) 594 } 595 596 private fun checkIfRootAvailable() { 597 ensureBackgroundThread { 598 config.isRootAvailable = RootTools.isRootAvailable() 599 if (config.isRootAvailable && config.enableRootAccess) { 600 RootHelpers(this).askRootIfNeeded { 601 config.enableRootAccess = it 602 } 603 } 604 } 605 } 606 607 private fun checkInvalidFavorites() { 608 ensureBackgroundThread { 609 config.favorites.forEach { 610 if (!isPathOnOTG(it) && !isPathOnSD(it) && !File(it).exists()) { 611 config.removeFavorite(it) 612 } 613 } 614 } 615 } 616 617 fun pickedPath(path: String) { 618 val resultIntent = Intent() 619 val uri = getFilePublicUri(File(path), BuildConfig.APPLICATION_ID) 620 val type = path.getMimeType() 621 resultIntent.setDataAndType(uri, type) 622 resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION 623 setResult(Activity.RESULT_OK, resultIntent) 624 finish() 625 } 626 627 // used at apps that have no file access at all, but need to work with files. For example Simple Calendar uses this at exporting events into a file 628 fun createDocumentConfirmed(path: String) { 629 val filename = intent.getStringExtra(Intent.EXTRA_TITLE) ?: "" 630 if (filename.isEmpty()) { 631 InsertFilenameDialog(this, internalStoragePath) { newFilename -> 632 finishCreateDocumentIntent(path, newFilename) 633 } 634 } else { 635 finishCreateDocumentIntent(path, filename) 636 } 637 } 638 639 private fun finishCreateDocumentIntent(path: String, filename: String) { 640 val resultIntent = Intent() 641 val uri = getFilePublicUri(File(path, filename), BuildConfig.APPLICATION_ID) 642 val type = path.getMimeType() 643 resultIntent.setDataAndType(uri, type) 644 resultIntent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION or Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION 645 setResult(Activity.RESULT_OK, resultIntent) 646 finish() 647 } 648 649 fun pickedRingtone(path: String) { 650 val uri = getFilePublicUri(File(path), BuildConfig.APPLICATION_ID) 651 val type = path.getMimeType() 652 Intent().apply { 653 setDataAndType(uri, type) 654 flags = Intent.FLAG_GRANT_READ_URI_PERMISSION 655 putExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI, uri) 656 setResult(Activity.RESULT_OK, this) 657 } 658 finish() 659 } 660 661 fun pickedPaths(paths: ArrayList<String>) { 662 val newPaths = paths.map { getFilePublicUri(File(it), BuildConfig.APPLICATION_ID) } as ArrayList 663 val clipData = ClipData("Attachment", arrayOf(paths.getMimeType()), ClipData.Item(newPaths.removeAt(0))) 664 665 newPaths.forEach { 666 clipData.addItem(ClipData.Item(it)) 667 } 668 669 Intent().apply { 670 this.clipData = clipData 671 flags = Intent.FLAG_GRANT_READ_URI_PERMISSION 672 setResult(Activity.RESULT_OK, this) 673 } 674 finish() 675 } 676 677 fun openedDirectory() { 678 if (binding.mainMenu.isSearchOpen) { 679 binding.mainMenu.closeSearch() 680 } 681 } 682 683 private fun getInactiveTabIndexes(activeIndex: Int) = (0 until binding.mainTabsHolder.tabCount).filter { it != activeIndex } 684 685 private fun getSelectedTabDrawableIds(): ArrayList<Int> { 686 val showTabs = config.showTabs 687 val icons = ArrayList<Int>() 688 689 if (showTabs and TAB_FILES != 0) { 690 icons.add(R.drawable.ic_folder_vector) 691 } 692 693 if (showTabs and TAB_RECENT_FILES != 0) { 694 icons.add(R.drawable.ic_clock_filled_vector) 695 } 696 697 if (showTabs and TAB_STORAGE_ANALYSIS != 0) { 698 icons.add(R.drawable.ic_storage_vector) 699 } 700 701 return icons 702 } 703 704 private fun getDeselectedTabDrawableIds(): ArrayList<Int> { 705 val showTabs = config.showTabs 706 val icons = ArrayList<Int>() 707 708 if (showTabs and TAB_FILES != 0) { 709 icons.add(R.drawable.ic_folder_outline_vector) 710 } 711 712 if (showTabs and TAB_RECENT_FILES != 0) { 713 icons.add(R.drawable.ic_clock_vector) 714 } 715 716 if (showTabs and TAB_STORAGE_ANALYSIS != 0) { 717 icons.add(R.drawable.ic_storage_vector) 718 } 719 720 return icons 721 } 722 723 private fun getRecentsFragment() = findViewById<RecentsFragment>(R.id.recents_fragment) 724 private fun getItemsFragment() = findViewById<ItemsFragment>(R.id.items_fragment) 725 private fun getStorageFragment() = findViewById<StorageFragment>(R.id.storage_fragment) 726 private fun getAllFragments(): ArrayList<MyViewPagerFragment<*>?> = 727 arrayListOf(getItemsFragment(), getRecentsFragment(), getStorageFragment()) 728 729 private fun getCurrentFragment(): MyViewPagerFragment<*>? { 730 val showTabs = config.showTabs 731 val fragments = arrayListOf<MyViewPagerFragment<*>>() 732 if (showTabs and TAB_FILES != 0) { 733 fragments.add(getItemsFragment()) 734 } 735 736 if (showTabs and TAB_RECENT_FILES != 0) { 737 fragments.add(getRecentsFragment()) 738 } 739 740 if (showTabs and TAB_STORAGE_ANALYSIS != 0) { 741 fragments.add(getStorageFragment()) 742 } 743 744 return fragments.getOrNull(binding.mainViewPager.currentItem) 745 } 746 747 private fun getTabsList() = arrayListOf(TAB_FILES, TAB_RECENT_FILES, TAB_STORAGE_ANALYSIS) 748 749 private fun checkWhatsNewDialog() { 750 arrayListOf<Release>().apply { 751 checkWhatsNew(this, BuildConfig.VERSION_CODE) 752 } 753 } 754 }12- [Lint baseline CI paths](lint-baseline-ci-paths.md) — 4 entries never match locally; not stale, keep them- [Robolectric test environment](robolectric-test-environment.md) — SDK 36 only from cache; storage/app-op/media-scanner setup for MainActivity tests12345678910111213141516171819---name: lint-baseline-ci-pathsdescription: Four lint baseline entries never match locally because they hold CI-only paths; they are not stalemetadata: node_type: memory type: project originSessionId: 53a46ba4-2d10-40ce-bc37-d7b910708dec modified: 2026-10-21T13:09:40.157Z---
`app/lint-baseline.xml` has four entries whose location is `$HOME/work/File-Manager/File-Manager/gradle/libs.versions.toml`(OldTargetApi, GradleDependency for compileSdk, NewerVersionAvailable for the compose detekt rules and gesture-views).Locally lint reports "4 errors/warnings were listed in the baseline file ... but not found" even on a clean checkout,because the path only exists on the project's CI.
**Why:** the task rules allow deleting only baseline entries that no longer apply; these still apply on CI.
**How to apply:** when cleaning the baseline, compare against a freshly generated one by id + message + file, keep thesefour, and expect the "4 ... not found" line as the normal local state. See also [[robolectric-test-environment]].1234567891011121314151617181920212223242526---name: robolectric-test-environmentdescription: Robolectric in this repo needs SDK 36 runtimes from the local cache plus a storage and app-op setup to run MainActivitymetadata: node_type: memory type: project originSessionId: 53a46ba4-2d10-40ce-bc37-d7b910708dec modified: 2026-10-21T13:09:57.736Z---
The Compose UI tests (2026-10-21) run with Robolectric 4.16 via `./gradlew testFossDebugUnitTest`. Only theandroid-all-instrumented jars for SDK 34–36 are in `~/.m2`, so `app/src/test/resources/robolectric.properties` pins`sdk=36`; other SDKs would need a download at test time.
Non-obvious setup, done in `grantAllFilesAccess()` of the test utils:- `Environment.isExternalStorageManager()` crashes unless `ShadowEnvironment.addExternalDir()` was called.- Robolectric's separate external-files dir gets detected by Commons as an SD card (via `appLaunched()` → `updateSDCardPath()`), so the public external dir must be the internal storage.- Robolectric allows unset app ops, which makes `MediaStore.canManageMedia()` true and breaks Commons' delete; set `android:manage_media` to errored.- Robolectric's media scanner never reports completion, so rename and similar callbacks never fire without a custom `MediaScannerConnection` shadow.
**Why:** these took a long time to track down, and they look like app bugs at first.
**How to apply:** reuse the shared test utils for new tests. Related: [[lint-baseline-ci-paths]].123version https://git-lfs.github.com/spec/v1oid sha256:6771f6594e04bfcda27bd7814e1951b40a9ddd3bd1e2109633a741ff5e361109size 4390991212345678910[ { "source": "/logs/artifacts", "destination": "artifacts/logs/artifacts", "type": "file", "status": "failed", "service": null, "exclude": [] }]1{"task":{"path":"tasks/task"},"trial_name":"t-cf76be5f-1","trials_dir":"jobs","environment_build_timeout_multiplier":2.0,"agent":{"import_path":null,"model_name":"claude-opus-5-5","max_timeout_sec":129600.0,"kwargs":{"reasoning_effort":"max","disallowed_tools":"WebSearch"},"env":{"ANTHROPIC_API_KEY":"****","ANTHROPIC_BASE_URL":"https://api.anthropic.com","DISABLE_AUTOUPDATER":"1","CLAUDE_CODE_OAUTH_TOKEN":"****","ANTHROPIC_AUTH_TOKEN":"****","CLAUDE_CODE_USE_BEDROCK":"","CLAUDE_CODE_USE_VERTEX":"","CLAUDE_CODE_USE_FOUNDRY":"","AWS_BEARER_TOKEN_BEDROCK":"****","ANTHROPIC_DEFAULT_OPUS_MODEL":"claude-opus-5-5","ANTHROPIC_DEFAULT_SONNET_MODEL":"claude-opus-5-5","ANTHROPIC_DEFAULT_HAIKU_MODEL":"claude-opus-5-5","ANTHROPIC_DEFAULT_FABLE_MODEL":"claude-opus-5-5","CLAUDE_CODE_SUBAGENT_MODEL":"claude-opus-5-5"},"name":"claude-code"},"environment":{"import_path":null,"kwargs":{},"type":"docker"},"job_id":"b27b70eb-0091-42d5-a2f5-b2d1ce733e31"}1{"id":"3037c5ed-db69-45fe-af5f-c79352591c30","task_name":"android-bench/efflora__fossify-compose-screens","trial_name":"t-cf76be5f-1","trial_uri":"file:///jobs/trial","task_id":{"path":"tasks/task"},"source":null,"task_checksum":"","config":{"task":{"path":"tasks/task","git_url":null,"git_commit_id":null,"name":null,"ref":null,"overwrite":false,"download_dir":null,"source":null},"trial_name":"t-cf76be5f-1","trials_dir":"jobs","install_only":false,"timeout_multiplier":1.0,"agent_timeout_multiplier":null,"verifier_timeout_multiplier":null,"agent_setup_timeout_multiplier":null,"environment_build_timeout_multiplier":2.0,"agent":{"name":"claude-code","import_path":null,"model_name":"claude-opus-5-5","n_concurrent":null,"concurrency_group":null,"skills":[],"override_timeout_sec":null,"override_setup_timeout_sec":null,"max_timeout_sec":129600.0,"resume_trajectory":false,"load_trajectory":null,"extra_allowed_hosts":[],"kwargs":{"reasoning_effort":"max","disallowed_tools":"WebSearch"},"env":{"ANTHROPIC_API_KEY":"****","ANTHROPIC_BASE_URL":"https://api.anthropic.com","DISABLE_AUTOUPDATER":"1","CLAUDE_CODE_OAUTH_TOKEN":"****","ANTHROPIC_AUTH_TOKEN":"****","CLAUDE_CODE_USE_BEDROCK":"","CLAUDE_CODE_USE_VERTEX":"","CLAUDE_CODE_USE_FOUNDRY":"","AWS_BEARER_TOKEN_BEDROCK":"****","ANTHROPIC_DEFAULT_OPUS_MODEL":"claude-opus-5-5","ANTHROPIC_DEFAULT_SONNET_MODEL":"claude-opus-5-5","ANTHROPIC_DEFAULT_HAIKU_MODEL":"claude-opus-5-5","ANTHROPIC_DEFAULT_FABLE_MODEL":"claude-opus-5-5","CLAUDE_CODE_SUBAGENT_MODEL":"claude-opus-5-5"},"mcp_servers":[]},"user_agent":null,"environment":{"type":"docker","import_path":null,"force_build":false,"delete":true,"cpu_enforcement_policy":"auto","memory_enforcement_policy":"auto","override_cpus":null,"override_memory_mb":null,"override_storage_mb":null,"override_gpus":null,"override_tpu":null,"mounts":null,"extra_docker_compose":[],"kwargs":{},"extra_allowed_hosts":[]},"verifier":{"override_timeout_sec":null,"max_timeout_sec":null,"disable":false},"artifacts":[],"extra_instruction_paths":[],"extra_instructions":[],"job_id":"b27b70eb-0091-42d5-a2f5-b2d1ce733e31","source_trial":null},"agent_info":{"name":"claude-code","version":"2.1.287","model_info":{"name":"claude-opus-5-5","provider":"anthropic"}},"agent_result":{"n_input_tokens":357554080,"n_cache_tokens":355083897,"n_output_tokens":1287181,"cost_usd":null,"model_usage":{"claude-opus-5-5":{"n_input_tokens":357554080,"n_cache_tokens":355083897,"n_output_tokens":1287181,"cost_usd":null},"<synthetic>":{"n_input_tokens":0,"n_cache_tokens":0,"n_output_tokens":0,"cost_usd":null}},"rollout_details":null,"metadata":null},"verifier_result":{"rewards":{"reward":0.9887}},"exception_info":null,"started_at":"2026-10-21T10:09:49.980901Z","finished_at":"2026-10-21T15:32:13.860898Z","environment_setup":{"started_at":"2026-10-21T10:09:49.985960Z","finished_at":"2026-10-21T10:10:02.680312Z"},"agent_setup":{"started_at":"2026-10-21T10:10:02.680333Z","finished_at":"2026-10-21T10:10:05.475445Z"},"agent_execution":{"started_at":"2026-10-21T10:10:05.503337Z","finished_at":"2026-10-21T14:31:08.529829Z"},"verifier":{"started_at":"2026-11-04T03:55:24.227209Z","finished_at":"2026-11-04T05:09:24.486031Z"},"step_results":null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251{ "efflora__fossify-compose-screens": { "score": 0.0, "diagnostics": [ "pass_to_pass and fail_to_pass tests are not specified in the yaml, verifying all tests.", "Running test attempt: 1", "Test attempt 1: PASSED", "validation failed: functional#walk.files_selection_rename" ], "status": "AGENT_FAILED_VALIDATION", "used_tokens": null, "exported_passed_tests": [], "exported_failed_tests": [], "partial_score": 0.9887, "pass_rate": 0.9944, "validation_results": { "cheating#patch": 1.0, "functional#walk.archive_extract_to_chosen_folder": 1.0, "functional#walk.archive_folder_survives_rotation": 1.0, "functional#walk.archive_lists_entries": 1.0, "functional#walk.archive_password": 1.0, "functional#walk.archive_walk_into_folders_and_back": 1.0, "functional#walk.editor_edit_survives_process_death": 1.0, "functional#walk.editor_edit_survives_rotation": 1.0, "functional#walk.editor_menu_entries": 1.0, "functional#walk.editor_opens_file": 1.0, "functional#walk.editor_opens_from_other_apps": 1.0, "functional#walk.editor_save_as": 1.0, "functional#walk.editor_save_in_place": 1.0, "functional#walk.editor_search_bar": 1.0, "functional#walk.editor_search_survives_rotation": 1.0, "functional#walk.editor_unsaved_prompt_discard": 1.0, "functional#walk.editor_unsaved_prompt_save": 1.0, "functional#walk.favorites_add": 1.0, "functional#walk.favorites_empty_state": 1.0, "functional#walk.favorites_remove_by_selection": 1.0, "functional#walk.favorites_remove_from_row_menu": 1.0, "functional#walk.files_browse_and_breadcrumbs": 1.0, "functional#walk.files_create_new_file": 1.0, "functional#walk.files_create_new_folder": 1.0, "functional#walk.files_folder_restored_after_process_death": 1.0, "functional#walk.files_grid_and_list_view": 1.0, "functional#walk.files_pull_to_refresh_shows_external_changes": 1.0, "functional#walk.files_search_finds_nested_files": 1.0, "functional#walk.files_selection_compress": 1.0, "functional#walk.files_selection_copy_to_folder": 1.0, "functional#walk.files_selection_delete": 1.0, "functional#walk.files_selection_move_to_folder": 1.0, "functional#walk.files_selection_properties": 1.0, "functional#walk.files_selection_rename": 0.0, "functional#walk.files_selection_share": 1.0, "functional#walk.files_sort_by_size_descending": 1.0, "functional#walk.files_temporarily_show_hidden": 1.0, "functional#walk.font_size_dialog": 1.0, "functional#walk.settings_dialogs_and_links": 1.0, "functional#walk.settings_rows_complete": 1.0, "functional#walk.settings_switches_show_and_store_values": 1.0, "regression#walk.files_folder_item_counts": 1.0, "regression#walk.files_search_highlights_query": 1.0, "regression#walk.main_screen_unchanged": 1.0, "regression#walk.no_crash_recorded": 1.0, "regression#walk.update_keeps_settings": 1.0, "requirements#old_views_removed": 1.0, "requirements#screens_drawn_by_compose": 1.0, "requirements#uses_fossify_compose_blocks": 1.0, "requirements#compose_ui_tests_for_each_screen": 1.0, "constraint#lint_and_detekt_not_loosened": 1.0, "constraint#app_id_and_sdk_levels_unchanged": 1.0, "constraint#existing_dependency_versions_unchanged": 1.0, "constraint#all_flavors_build_debug_and_release": 1.0, "constraint#detekt_and_lint_pass": 1.0, "requirements#agent_unit_tests_pass": 1.0, "gate#migration_started": 1.0, "cheating#no_prebuilt_binaries": 1.0, "visual#files_list": 1.0, "visual#files_selection": 1.0, "visual#favorites_empty": 1.0, "visual#archive": 1.0, "visual#editor": 1.0, "visual#settings": 1.0 }, "scoring_breakdown": { "base_score": 0.9887, "categories": { "functional": { "passed": 39, "total": 40, "weight": 0.45, "raw_weight": 0.45, "score": 0.975, "contribution": 0.4387 }, "regression": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "requirements": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "visual": { "passed": 6, "total": 6, "weight": 0.25, "raw_weight": 0.25, "score": 1.0, "contribution": 0.25 }, "code_quality": { "passed": 0.72, "total": 1.0, "weight": 0.0, "raw_weight": 0.0, "score": 0.72, "contribution": 0.0, "violations_count": 4 } }, "multipliers_applied": [], "logs": [ "WARNING: Test 'Test draggingAfterALongPressSelectsThePassedItems(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test listsTheTopOfTheArchiveFoldersFirst(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchFindsNamesThatGetLongerWhenNormalized(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test secondLongPressSelectsTheRangeInBetween(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test closeButtonClosesTheSearch(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backGoesUpAndClosesAtTheTop(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test tappingAFileOpensIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridCanHideTheFileNames(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test entriesWithTheSamePathAreShown(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test createButtonCreatesFoldersAndFiles(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressSelectsAndShowsTheActionsOverTheToolbar(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test unreadableContentClosesTheEditor(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test conditionalRowsAreShownLikeBefore(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test folderItemCountsStayAfterTheSearch(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pickingMultipleFilesConfirmsTheSelection(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test keyboardSuggestsNoWords(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridViewIsUsedWhereItIsSet(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test showsTheHomeFolderWithFoldersFirst(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test tapsToggleTheSelectionAndTheTitleSelectsAll(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rowsOpenTheirScreens(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheOpenFolder(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pullingDownDoesNothingWhileSelecting(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test saveWritesTheFile(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rootAccessRowIsShownOnRootedDevices(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test valuesStayAfterRotation(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test titleSelectsAllThenEndsTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test missingArchiveShowsAnError(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test removeActionRemovesTheSelectedFavorites(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pinchingZoomsTheText(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test storageBreadcrumbLetsPickTheStorage(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openWithOffersTheAppsForTheFile(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test discardingUnsavedChangesLeavesTheFileAsItWas(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test emptyFileIsReadyForTyping(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test unsavedEditsAndTheCursorSurviveTheProcessBeingKilled(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test closingTheSearchGoesToTheCurrentMatch(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test placeholderLinkAddsAFolderPickedInTheFilePicker(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchMovesTheCursorToTheMatches(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pinchingTheGridChangesTheColumnCount(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test breadcrumbsOpenTheirFolders(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test selectionStaysAfterRotation(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test protectedArchiveIsListedAfterTheRightPassword(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rowsShowTheirLabels(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test shownTabsArePickedInADialog(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test creatingADocumentConfirmsTheShownFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pullingDownRefreshesTheFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test fastScrollerJumpsThroughLongFolders(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test opensTheRealPathPassedByTheFileManager(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test creatingADocumentWithoutANameAsksForIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test foldersOpenOnTapAndBackGoesUp(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test quickBackPressesGoUpOneFolderEach(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openingAFolderFromAnotherAppShowsIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test favoritesAreListed(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchNeedsTwoCharacters(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteGoesOnWhenTheFolderGetsReloadedMeanwhile(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test showsAllSectionsAndRowsInTheirOrder(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test missingFileOpensAnEmptyEditor(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test secondLongPressSelectsTheRangeInBetween(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchShowsTheMatchesGroupedByFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test savingToAPickedFileWorksAfterTheProcessWasKilled(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressSelectsAndTapsToggleTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test onlyFoldersGetACheckInTheGrid(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test leavingNeedsTwoBackPressesWhenSetSo(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressOnTheMenuButtonOpensTheMenu(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteAsksFirst(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test actionsDependOnTheSelectedItems(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test topBarHasTheMenuActions(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openFolderSurvivesTheProcessBeingKilled(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test dateAndTimeFormatIsPickedInADialog(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheEditsTheCursorAndTheSearch(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test doubleTapStartsFromTheStoredZoom(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test valuesAreReadAgainWhenTheScreenResumes(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test doubleTapTogglesTheZoom(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test decompressExtractsEverythingIntoThePickedFolder(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test fontSizeIsPickedInADialog(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test protectedHiddenItemsAreShownOnlyAfterThePassword(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test itemMenuRemovesTheFavorite(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rowsOfOlderAndroidVersionsAndGooglePlay(org.fossify.filemanager.SettingsScreenContentTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test passwordProtectionsAskForThePasswordFirst(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test foldersOpenOnTapFilesDoNot(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test saveAsWritesAnotherFile(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test selectAllFromTheMenu(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test foldersAreShownFromTheirTop(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test opensFilesFromOtherApps(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test emptyListShowsThePlaceholder(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test propertiesShowTheItem(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backArrowClosesTheScreen(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backAndCloseEndTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test draggingAfterALongPressSelectsThePassedItems(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test switchesShowTheStoredValues(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test topBarActionAddsAFavorite(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test renameRenamesTheItem(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test listsArchivesSharedAsContentUris(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test matchesStayWhenTheSearchedTextGetsTooShort(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test opensContentUris(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteDoesNotAskWhenTurnedOff(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheOpenFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backClosesTheSearchFirst(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressOnAFolderOfTheSearchResultsDoesNothingWhileSelecting(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridShowsFoldersAndFilesInSeparateRows(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheFocus(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test leavingWithUnsavedChangesAsksToSave(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openFolderSurvivesTheProcessBeingKilled(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test copyPathCopiesItAndEndsTheSelection(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test switchesToggleTheStoredValues(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test hiddenItemsCanBeUnhidden(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backAndCloseEndTheSelection(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test cancellingThePasswordClosesTheArchive(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test storedFontSizeIsShown(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pullingDownDoesNothingWhenItIsTurnedOff(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test tappingAFolderOfTheSearchResultsOpensIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test itemMenuEndsTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored." ] }, "status_description": "Agent created a patch that fails the validate.sh", "code_quality_score": 0.72, "code_quality_violations": 4 }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121INFO | Android emulator version 37.2.12.0 (build_id 16428233) (CL:N/A)INFO | Graphics backend: gfxstreamINFO | Found systemPath /opt/android-sdk/system-images/android-36/google_apis/x86_64/INFO | Saving last run QEMU version for the AVD to 2INFO | Guest usage of host flag 'VulkanVirtualQueue' will be ignored.INFO | Guest GLES Driver: Auto (ext controls)ERROR | gpuChoiceBasedOnGpuOptions: Selected GPU option 'swiftshader_indirect' is not valid, switching to 'auto' mode.WARNING | Your GPU drivers may have a bug. Switching to software rendering.INFO | emuglConfig_init: vulkan_mode_selected:lavapipe gles_mode_selected:swangleINFO | Checking system compatibility:INFO | Checking: hasSufficientDiskSpaceINFO | Ok: Disk space requirements to run avd: `bench` are metINFO | Checking: hasSufficientHwGpuINFO | Ok: Hardware GPU compatibility checks are not requiredINFO | Checking: hasSufficientSystemINFO | Ok: System requirements to run avd: `bench` are metWARNING | File System is not ext4, disable QuickbootFileBacked featureWARNING | could not find /usr/share/zoneinfo/ directory. unable to determine host timezoneINFO | Storing crashdata in: /tmp/android-unknown/emu-crash-37.2.12.db, detection is enabled for process: 1069INFO | Initializing gfxstream backendINFO | startOpenglesRendererImpl: gpu infoINFO | INFO | initIcdPaths: ICD set to 'lavapipe', using Lavapipe ICDINFO | Setting ICD filenames for the loader = /opt/android-sdk/emulator/lib64/vulkan/lvp_icd.jsonINFO | SharedLibrary::open for [/opt/android-sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so]INFO | SharedLibrary::open for [/opt/android-sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so.1]INFO | SharedLibrary::open for [/opt/android-sdk/emulator/lib64/vulkan/libvulkan.so]INFO | Added library: /opt/android-sdk/emulator/lib64/vulkan/libvulkan.soINFO | Selecting Vulkan device: llvmpipe (LLVM 21.0.0, 256 bits), Version: 1.4.318INFO | Using Vulkan externalMemoryMode: OpaqueFd for VkEmulationINFO | Format VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16 does not support YCbCr sampler conversionINFO | SharedLibrary::open for [libX11]WARNING | Could not open libX11.so, try libX11.so.6INFO | SharedLibrary::open for [libX11.so.6]INFO | SharedLibrary::open for [libX11-xcb]WARNING | Could not open libX11-xcb.so, try libX11-xcb.so.1INFO | SharedLibrary::open for [libX11-xcb.so.1]INFO | Initializing VkEmulation features:INFO | glInteropSupported: falseINFO | useDeferredCommands: trueINFO | createResourceWithRequirements: trueINFO | useVulkanComposition: falseINFO | useVulkanNativeSwapchain: falseINFO | enable guestRenderDoc: falseINFO | ASTC LDR emulation mode: GpuINFO | enable ETC2 emulation: trueINFO | enable Ycbcr emulation: falseINFO | guestVulkanOnly: falseINFO | useDedicatedAllocations: falseINFO | guestVulkanMaxApiVersion: 1.3.0INFO | enableProtectedMemoryEmulation: falseINFO | Graphics Adapter Vendor Google (Google Inc.)INFO | Graphics Adapter Android Emulator OpenGL ES Translator (Google SwiftShader)INFO | Graphics API Version OpenGL ES 3.0 (OpenGL ES 3.0 SwiftShader 4.0.0.1)INFO | Graphics API Extensions GL_OES_EGL_sync GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_standard_derivatives GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_texture_format_BGRA8888 GL_APPLE_texture_format_BGRA8888 INFO | Graphics Device Extensions N/AINFO | Disabling sparse binding feature supportERROR | Setting read-only feature 'GLAsyncSwap' to '0'INFO | Feature 'GLAsyncSwap' (50) is overridden to 'disabled'INFO | Sending adb public key [QAAAAHnhPPs3R7vwrik9RTZSKM5/aygDU5QxO7STjmvd0BaQW52i4q8U0nTD2jlCw2wF8R6JvfN/wJbqkEdR1fyZAGXxMwHcKu17oGZN+/WyUD5LIR+zrLCvx3LNRsloJv/cOWChIPbE9a5qt9zDaiBE/AQ+3XHWzKzJ0pb0ZTJinHRwHj3QokYLCYdNMhVPhIbgOYUj7MSoqKIyf1dDcyE8BfMJhIvXh22DtvzojEDxQXRoea3nL31Bs13p+HyypyI85KKcWAxrvPfXr6xU9EWdIl6gZHh8ilvvS/uXsaCMHJXOnV27JzLAgmBAjBS8AVuLvRPWTXsnHCfk58x3zLuWm4c4/0LPQB8d9+f+RvCdvHv4vaKkQTkND0fOlr2wLqkGg0cOMFmzztuhqcZ5lDpBeRY0jsKidNCPSyhMsD3GEFNnLSUkAbvZJeWKO4LgxZVZ+PvCLoJ0t1Saxr0+UdVDtSeHIu21ceP1qXjMonrJBndy1+PJ+rsI7ZnYYtzOS4QgcbHla3UZtNTM+sxLnp3QqWiuDKJ4j18gCqcFyMYKqfl2Iyuq9NcUzKAGrZ2aHhULbv+rIIIBhX+eAx6LNVW/tKWwRMN0MrZ8BDebDSMFCxEG7s2gJzk0OCIGSerUoXMbhqb3PE353jtj5O5VdIe7B6AoJdxh8hjlaOttzmW8ykwHCEmxMwEAAQA= @unknown]INFO | Userspace boot properties:INFO | androidboot.boot_devices=pci0000:00/0000:00:03.0 pci0000:00/0000:00:06.0INFO | androidboot.dalvik.vm.heapsize=576mINFO | androidboot.debug.hwui.renderer=skiaglINFO | androidboot.hardware=ranchuINFO | androidboot.hardware.gltransport=pipeINFO | androidboot.hardware.vulkan=ranchuINFO | androidboot.logcat=*:VINFO | androidboot.opengles.version=196608INFO | androidboot.qemu=1INFO | androidboot.qemu.adb.pubkey=QAAAAHnhPPs3R7vwrik9RTZSKM5/aygDU5QxO7STjmvd0BaQW52i4q8U0nTD2jlCw2wF8R6JvfN/wJbqkEdR1fyZAGXxMwHcKu17oGZN+/WyUD5LIR+zrLCvx3LNRsloJv/cOWChIPbE9a5qt9zDaiBE/AQ+3XHWzKzJ0pb0ZTJinHRwHj3QokYLCYdNMhVPhIbgOYUj7MSoqKIyf1dDcyE8BfMJhIvXh22DtvzojEDxQXRoea3nL31Bs13p+HyypyI85KKcWAxrvPfXr6xU9EWdIl6gZHh8ilvvS/uXsaCMHJXOnV27JzLAgmBAjBS8AVuLvRPWTXsnHCfk58x3zLuWm4c4/0LPQB8d9+f+RvCdvHv4vaKkQTkND0fOlr2wLqkGg0cOMFmzztuhqcZ5lDpBeRY0jsKidNCPSyhMsD3GEFNnLSUkAbvZJeWKO4LgxZVZ+PvCLoJ0t1Saxr0+UdVDtSeHIu21ceP1qXjMonrJBndy1+PJ+rsI7ZnYYtzOS4QgcbHla3UZtNTM+sxLnp3QqWiuDKJ4j18gCqcFyMYKqfl2Iyuq9NcUzKAGrZ2aHhULbv+rIIIBhX+eAx6LNVW/tKWwRMN0MrZ8BDebDSMFCxEG7s2gJzk0OCIGSerUoXMbhqb3PE353jtj5O5VdIe7B6AoJdxh8hjlaOttzmW8ykwHCEmxMwEAAQA= @unknownINFO | androidboot.qemu.avd_name=benchINFO | androidboot.qemu.camera_hq_edge_processing=0INFO | androidboot.qemu.camera_protocol_ver=1INFO | androidboot.qemu.cpuvulkan.version=4206592INFO | androidboot.qemu.gltransport.drawFlushInterval=800INFO | androidboot.qemu.gltransport.name=pipeINFO | androidboot.qemu.hwcodec.avcdec=2INFO | androidboot.qemu.hwcodec.hevcdec=2INFO | androidboot.qemu.hwcodec.vpxdec=2INFO | androidboot.qemu.settings.system.screen_off_timeout=2147483647INFO | androidboot.qemu.skin=1080x2400INFO | androidboot.qemu.virtiowifi=1INFO | androidboot.qemu.vsync=60INFO | androidboot.serialno=EMULATOR37X2X12X0INFO | androidboot.vbmeta.digest=7466b5c28e6a3e1427b22ed2c317c6c7066294bde838d4d5243cce5d37992bd5INFO | androidboot.vbmeta.hash_alg=sha256INFO | androidboot.vbmeta.size=6848INFO | androidboot.veritymode=enforcingWARNING: cannnot unmap ptr 0x7faddde01000 as it is in the protected range from 0x7fad1de00000 to 0x7fadde000000Could not init `pa' audio driverINFO | Monitoring duration of emulator setup.WARNING | could not find /usr/share/zoneinfo/ directory. unable to determine host timezoneWARNING | Using fallback path for the emulator registration directory.WARNING | The emulator now requires a signed jwt token for gRPC access! Use the -grpc flag if you really want an open unprotected grpc portINFO | Using security allow list from: /opt/android-sdk/emulator/lib/emulator_access.jsonINFO | The active JSON Web Key Sets can be found here: /root/.android/avd/running/1069/jwks/63f6b7cd-8460-4efb-9ef4-6774419540b1/active.jwkINFO | Scanning /root/.android/avd/running/1069/jwks/63f6b7cd-8460-4efb-9ef4-6774419540b1 for jwk keys.INFO | Started GRPC server at 127.0.0.1:8554, security: Local, auth: +tokenWARNING | Using fallback path for the emulator registration directory.INFO | Advertising in: /root/.android/avd/running/pid_1069.iniINFO | Activated packet streamer for bluetooth emulationINFO | Successfully initialized netsim WiFiINFO | Activated packet streamer for uwb emulationINFO | Setting display: 0 configuration to: 1080x2400, dpi: 420x420 INFO | setDisplayActiveConfig: id:0, 1080x2400INFO | emulatorSetupEnvironment: Environment scene is not requiredUSER_INFO | Emulator is performing a full startup. This may take upto two minutes, or more.WARNING | Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.WARNING | Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.INFO | Boot completed in 28174 msINFO | Increasing screen off timeout, logcat buffer size to 2M.INFO | Created VkInstance:0x559a82104000 for application:'' engine:''.INFO | Destroyed VkInstance:0x559a82104000 for application:'' engine:''.INFO | Wait for emulator (pid 1069) 20 seconds to shutdown gracefully before kill;you can set environment variable ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL(in seconds) to change the default value (20 seconds)
USER_INFO | Snapshots have been disabled by the user, save request is ignored.INFO | Saving snapshot 'default_boot' took 0 msERROR | stop: Not implementedpulseaudio: Failed to initialize PA contextINFO | removeAllWARNING | Netsim Wifi dns:///localhost:45891 is gone due to Stream removed (CANCELLED)1234567891011[ { "phase": "verifier-generated", "source": "/logs/artifacts", "service": "main", "type": "directory", "exclude": [], "status": "ok", "destination": "artifacts/generated/logs/artifacts" }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preCoreDebugBuild UP-TO-DATE> Task :app:mergeCoreDebugNativeDebugMetadata NO-SOURCE> Task :app:dataBindingMergeDependencyArtifactsCoreDebug> Task :app:extractCoreDebugSupportedLocales> Task :app:mapCoreDebugSourceSetPaths> Task :app:generateCoreDebugResources> Task :app:generateCoreDebugLocaleConfig> Task :app:generateCoreDebugBuildConfig> Task :app:packageCoreDebugResources> Task :app:processCoreDebugNavigationResources> Task :app:generateCoreDebugAssets UP-TO-DATE> Task :app:javaPreCompileCoreDebug> Task :app:mergeCoreDebugAssets> Task :app:compressCoreDebugAssets> Task :app:parseCoreDebugLocalResources> Task :app:mergeCoreDebugResources> Task :app:generateCoreDebugGlobalSynthetics> Task :app:dataBindingGenBaseClassesCoreDebug> Task :app:desugarCoreDebugFileDependencies> Task :app:checkCoreDebugDuplicateClasses> Task :app:checkCoreDebugAarMetadata> Task :app:generateCoreDebugRFile> Task :app:compileCoreDebugNavigationResources> Task :app:mergeLibDexCoreDebug> Task :app:createCoreDebugCompatibleScreenManifests> Task :app:extractDeepLinksCoreDebug
> Task :app:processCoreDebugMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processCoreDebugManifest> Task :app:mergeCoreDebugJniLibFolders> Task :app:processCoreDebugManifestForPackage> Task :app:mergeCoreDebugNativeLibs
> Task :app:stripCoreDebugDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:validateSigningCoreDebug> Task :app:writeCoreDebugAppMetadata> Task :app:writeCoreDebugSigningConfigVersions> Task :app:processCoreDebugResources> Task :app:mergeExtDexCoreDebug
> Task :app:compileCoreDebugKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:175:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:223:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:465:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:207:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:214:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:358:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileCoreDebugJavaWithJavac> Task :app:processCoreDebugJavaRes> Task :app:mergeCoreDebugJavaResource> Task :app:dexBuilderCoreDebug> Task :app:mergeProjectDexCoreDebug> Task :app:packageCoreDebug> Task :app:createCoreDebugApkListingFileRedirect> Task :app:assembleCoreDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 36s42 actionable tasks: 42 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preCoreReleaseBuild UP-TO-DATE> Task :app:mergeCoreReleaseJniLibFolders> Task :app:mergeCoreReleaseNativeLibs
> Task :app:stripCoreReleaseDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:checkCoreReleaseDuplicateClasses> Task :app:dataBindingMergeDependencyArtifactsCoreRelease> Task :app:extractCoreReleaseNativeSymbolTables> Task :app:extractCoreReleaseSupportedLocales> Task :app:mergeCoreReleaseNativeDebugMetadata NO-SOURCE> Task :app:mapCoreReleaseSourceSetPaths> Task :app:generateCoreReleaseResources> Task :app:generateCoreReleaseLocaleConfig> Task :app:generateCoreReleaseBuildConfig> Task :app:packageCoreReleaseResources> Task :app:processCoreReleaseNavigationResources> Task :app:javaPreCompileCoreRelease> Task :app:parseCoreReleaseLocalResources> Task :app:mergeCoreReleaseArtProfile> Task :app:mergeCoreReleaseResources> Task :app:dataBindingGenBaseClassesCoreRelease> Task :app:generateCoreReleaseRFile> Task :app:checkCoreReleaseAarMetadata> Task :app:compileCoreReleaseNavigationResources> Task :app:createCoreReleaseCompatibleScreenManifests> Task :app:extractDeepLinksCoreRelease
> Task :app:processCoreReleaseMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processCoreReleaseManifest> Task :app:extractProguardFiles> Task :app:mergeCoreReleaseStartupProfile> Task :app:generateCoreReleaseAssets UP-TO-DATE> Task :app:mergeCoreReleaseAssets> Task :app:compressCoreReleaseAssets> Task :app:extractCoreReleaseVersionControlInfo> Task :app:writeCoreReleaseAppMetadata> Task :app:writeCoreReleaseSigningConfigVersions> Task :app:processCoreReleaseManifestForPackage> Task :app:processCoreReleaseResources> Task :app:optimizeCoreReleaseResources
> Task :app:compileCoreReleaseKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:175:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:223:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:465:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:207:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:214:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:358:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileCoreReleaseJavaWithJavac> Task :app:mergeCoreReleaseGeneratedProguardFiles> Task :app:processCoreReleaseJavaRes> Task :app:expandCoreReleaseArtProfileWildcards> Task :app:mergeCoreReleaseJavaResource> Task :app:produceCoreReleaseComposeMapping> Task :app:reportCoreReleaseComposeMappingErrors> Task :app:minifyCoreReleaseWithR8> Task :app:mergeCoreReleaseComposeMapping> Task :app:compileCoreReleaseArtProfile> Task :app:packageCoreRelease> Task :app:createCoreReleaseApkListingFileRedirect> Task :app:assembleCoreRelease
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 27s48 actionable tasks: 48 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preFossReleaseBuild UP-TO-DATE> Task :app:mergeFossReleaseJniLibFolders> Task :app:mergeFossReleaseNativeLibs
> Task :app:stripFossReleaseDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:checkFossReleaseDuplicateClasses> Task :app:dataBindingMergeDependencyArtifactsFossRelease> Task :app:extractFossReleaseNativeSymbolTables> Task :app:extractFossReleaseSupportedLocales> Task :app:mergeFossReleaseNativeDebugMetadata NO-SOURCE> Task :app:mapFossReleaseSourceSetPaths> Task :app:generateFossReleaseResources> Task :app:generateFossReleaseLocaleConfig> Task :app:generateFossReleaseBuildConfig> Task :app:packageFossReleaseResources> Task :app:processFossReleaseNavigationResources> Task :app:parseFossReleaseLocalResources> Task :app:javaPreCompileFossRelease> Task :app:mergeFossReleaseArtProfile> Task :app:mergeFossReleaseResources> Task :app:checkFossReleaseAarMetadata> Task :app:generateFossReleaseRFile> Task :app:dataBindingGenBaseClassesFossRelease> Task :app:compileFossReleaseNavigationResources> Task :app:createFossReleaseCompatibleScreenManifests> Task :app:extractDeepLinksFossRelease
> Task :app:processFossReleaseMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processFossReleaseManifest> Task :app:extractProguardFiles UP-TO-DATE> Task :app:mergeFossReleaseStartupProfile> Task :app:generateFossReleaseAssets UP-TO-DATE> Task :app:mergeFossReleaseAssets> Task :app:compressFossReleaseAssets> Task :app:extractFossReleaseVersionControlInfo> Task :app:writeFossReleaseAppMetadata> Task :app:writeFossReleaseSigningConfigVersions> Task :app:processFossReleaseManifestForPackage> Task :app:processFossReleaseResources> Task :app:optimizeFossReleaseResources
> Task :app:compileFossReleaseKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:175:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:223:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:465:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:207:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:214:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:358:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileFossReleaseJavaWithJavac> Task :app:mergeFossReleaseGeneratedProguardFiles> Task :app:processFossReleaseJavaRes> Task :app:expandFossReleaseArtProfileWildcards> Task :app:mergeFossReleaseJavaResource> Task :app:produceFossReleaseComposeMapping> Task :app:reportFossReleaseComposeMappingErrors> Task :app:minifyFossReleaseWithR8> Task :app:mergeFossReleaseComposeMapping> Task :app:compileFossReleaseArtProfile> Task :app:packageFossRelease> Task :app:createFossReleaseApkListingFileRedirect> Task :app:assembleFossRelease
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 27s48 actionable tasks: 47 executed, 1 up-to-dateConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preGplayDebugBuild UP-TO-DATE> Task :app:mergeGplayDebugNativeDebugMetadata NO-SOURCE> Task :app:dataBindingMergeDependencyArtifactsGplayDebug> Task :app:extractGplayDebugSupportedLocales> Task :app:mapGplayDebugSourceSetPaths> Task :app:generateGplayDebugResources> Task :app:generateGplayDebugLocaleConfig> Task :app:generateGplayDebugBuildConfig> Task :app:packageGplayDebugResources> Task :app:processGplayDebugNavigationResources> Task :app:parseGplayDebugLocalResources> Task :app:javaPreCompileGplayDebug> Task :app:generateGplayDebugAssets UP-TO-DATE> Task :app:mergeGplayDebugAssets> Task :app:compressGplayDebugAssets> Task :app:generateGplayDebugRFile> Task :app:mergeGplayDebugResources> Task :app:generateGplayDebugGlobalSynthetics> Task :app:dataBindingGenBaseClassesGplayDebug> Task :app:desugarGplayDebugFileDependencies> Task :app:checkGplayDebugDuplicateClasses> Task :app:checkGplayDebugAarMetadata> Task :app:mergeLibDexGplayDebug> Task :app:compileGplayDebugNavigationResources> Task :app:createGplayDebugCompatibleScreenManifests> Task :app:extractDeepLinksGplayDebug
> Task :app:processGplayDebugMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processGplayDebugManifest> Task :app:mergeGplayDebugJniLibFolders> Task :app:processGplayDebugManifestForPackage> Task :app:mergeGplayDebugNativeLibs
> Task :app:stripGplayDebugDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:validateSigningGplayDebug> Task :app:writeGplayDebugAppMetadata> Task :app:writeGplayDebugSigningConfigVersions> Task :app:processGplayDebugResources> Task :app:mergeExtDexGplayDebug
> Task :app:compileGplayDebugKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:175:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:223:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:465:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:207:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:214:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:358:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileGplayDebugJavaWithJavac> Task :app:processGplayDebugJavaRes> Task :app:mergeGplayDebugJavaResource> Task :app:dexBuilderGplayDebug> Task :app:mergeProjectDexGplayDebug> Task :app:packageGplayDebug> Task :app:createGplayDebugApkListingFileRedirect> Task :app:assembleGplayDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 36s42 actionable tasks: 42 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preGplayReleaseBuild UP-TO-DATE> Task :app:mergeGplayReleaseJniLibFolders> Task :app:mergeGplayReleaseNativeLibs
> Task :app:stripGplayReleaseDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:checkGplayReleaseDuplicateClasses> Task :app:dataBindingMergeDependencyArtifactsGplayRelease> Task :app:extractGplayReleaseNativeSymbolTables> Task :app:extractGplayReleaseSupportedLocales> Task :app:mergeGplayReleaseNativeDebugMetadata NO-SOURCE> Task :app:mapGplayReleaseSourceSetPaths> Task :app:generateGplayReleaseResources> Task :app:generateGplayReleaseLocaleConfig> Task :app:generateGplayReleaseBuildConfig> Task :app:packageGplayReleaseResources> Task :app:processGplayReleaseNavigationResources> Task :app:javaPreCompileGplayRelease> Task :app:mergeGplayReleaseArtProfile> Task :app:parseGplayReleaseLocalResources> Task :app:checkGplayReleaseAarMetadata> Task :app:compileGplayReleaseNavigationResources> Task :app:createGplayReleaseCompatibleScreenManifests> Task :app:extractDeepLinksGplayRelease> Task :app:mergeGplayReleaseResources> Task :app:generateGplayReleaseRFile
> Task :app:processGplayReleaseMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:dataBindingGenBaseClassesGplayRelease> Task :app:processGplayReleaseManifest> Task :app:extractProguardFiles UP-TO-DATE> Task :app:mergeGplayReleaseStartupProfile> Task :app:generateGplayReleaseAssets UP-TO-DATE> Task :app:mergeGplayReleaseAssets> Task :app:compressGplayReleaseAssets> Task :app:extractGplayReleaseVersionControlInfo> Task :app:writeGplayReleaseAppMetadata> Task :app:writeGplayReleaseSigningConfigVersions> Task :app:processGplayReleaseManifestForPackage> Task :app:processGplayReleaseResources> Task :app:optimizeGplayReleaseResources
> Task :app:compileGplayReleaseKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:175:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:223:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:465:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:207:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:214:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:358:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileGplayReleaseJavaWithJavac> Task :app:mergeGplayReleaseGeneratedProguardFiles> Task :app:processGplayReleaseJavaRes> Task :app:expandGplayReleaseArtProfileWildcards> Task :app:mergeGplayReleaseJavaResource> Task :app:produceGplayReleaseComposeMapping> Task :app:reportGplayReleaseComposeMappingErrors> Task :app:minifyGplayReleaseWithR8> Task :app:mergeGplayReleaseComposeMapping> Task :app:compileGplayReleaseArtProfile> Task :app:packageGplayRelease> Task :app:createGplayReleaseApkListingFileRedirect> Task :app:assembleGplayRelease
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 28s48 actionable tasks: 47 executed, 1 up-to-dateConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html12345{ "score": 0.72, "violations_count": 4, "reasoning": "The patch performs a large and mostly well-structured migration of several screens (Settings, Decompress, ManageFavorites, ReadText, ItemsFragment) to Jetpack Compose, including ViewModel separation and comprehensive Robolectric tests. However, it violates several explicit rules from the Code Quality Checklist:\n\n1. **Null Safety (Rule 3 - Defensive Programming)**: Multiple instances of the forbidden not-null assertion operator `!!` were introduced in new and modified files:\n - `BasicFileActions.kt`: `!it.name!!.startsWith(\".\")`\n - `CompressAction.kt`: `File(folderPath).listFiles()!!` and `activity.getFileInputStreamSync(path)!!`\n - `DecompressAction.kt`: `conflictResolutions[\"\"]!!` and `conflictResolutions[path]!!`\n - `ShortcutAction.kt`: `AppCompatResources.getDrawable(...)!!.mutate()`\n - `ReadTextActivity.kt`: `intent.dataString!!`\n - `ReadTextViewModel.kt`: `uri.path!!` and `contentResolver.openInputStream(uri)!!`\n Safe calls, Elvis operator, or `requireNotNull()` / smart-casts should be used instead.\n\n2. **Compose Modifier Ownership (Rule 2 - Modifier Ownership)**: Public composables `FilesTabContent` and `FilesSelectionBarContent` do not accept `modifier: Modifier = Modifier` as their first optional parameter and do not forward modifiers to their root composables.\n\n3. **Monotonic Time for Intervals (Rule 4 - Structured Concurrency)**: `System.currentTimeMillis()` is used to measure elapsed time intervals instead of `SystemClock.elapsedRealtime()` in:\n - `ReadTextActivity.kt`: `System.currentTimeMillis() - viewModel.lastSavePromptTS > SAVE_DISCARD_PROMPT_INTERVAL`\n - `ListGestures.kt`: `System.currentTimeMillis() - lastGestureEnd >= ZOOM_PAUSE_AFTER_GESTURE_MS`\n\n4. **Boolean Traps (Rule 3 - Function Signatures & Naming)**: Multiple function calls use raw boolean literals without named arguments, e.g., `activity.tryOpenPathIntent(firstPath, true)`, `RenameDialog(activity, paths, false)`, `saveText(true)`, `activity.deleteFile(fileDirItem, true)`, `addFolderContent(folderPath, true)`. Named arguments (e.g., `isCopyOperation = false`) should be used to avoid ambiguity."}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251{ "efflora__fossify-compose-screens": { "score": 0.0, "diagnostics": [ "pass_to_pass and fail_to_pass tests are not specified in the yaml, verifying all tests.", "Running test attempt: 1", "Test attempt 1: PASSED", "validation failed: functional#walk.files_selection_rename" ], "status": "AGENT_FAILED_VALIDATION", "used_tokens": null, "exported_passed_tests": [], "exported_failed_tests": [], "partial_score": 0.9887, "pass_rate": 0.9944, "validation_results": { "cheating#patch": 1.0, "functional#walk.archive_extract_to_chosen_folder": 1.0, "functional#walk.archive_folder_survives_rotation": 1.0, "functional#walk.archive_lists_entries": 1.0, "functional#walk.archive_password": 1.0, "functional#walk.archive_walk_into_folders_and_back": 1.0, "functional#walk.editor_edit_survives_process_death": 1.0, "functional#walk.editor_edit_survives_rotation": 1.0, "functional#walk.editor_menu_entries": 1.0, "functional#walk.editor_opens_file": 1.0, "functional#walk.editor_opens_from_other_apps": 1.0, "functional#walk.editor_save_as": 1.0, "functional#walk.editor_save_in_place": 1.0, "functional#walk.editor_search_bar": 1.0, "functional#walk.editor_search_survives_rotation": 1.0, "functional#walk.editor_unsaved_prompt_discard": 1.0, "functional#walk.editor_unsaved_prompt_save": 1.0, "functional#walk.favorites_add": 1.0, "functional#walk.favorites_empty_state": 1.0, "functional#walk.favorites_remove_by_selection": 1.0, "functional#walk.favorites_remove_from_row_menu": 1.0, "functional#walk.files_browse_and_breadcrumbs": 1.0, "functional#walk.files_create_new_file": 1.0, "functional#walk.files_create_new_folder": 1.0, "functional#walk.files_folder_restored_after_process_death": 1.0, "functional#walk.files_grid_and_list_view": 1.0, "functional#walk.files_pull_to_refresh_shows_external_changes": 1.0, "functional#walk.files_search_finds_nested_files": 1.0, "functional#walk.files_selection_compress": 1.0, "functional#walk.files_selection_copy_to_folder": 1.0, "functional#walk.files_selection_delete": 1.0, "functional#walk.files_selection_move_to_folder": 1.0, "functional#walk.files_selection_properties": 1.0, "functional#walk.files_selection_rename": 0.0, "functional#walk.files_selection_share": 1.0, "functional#walk.files_sort_by_size_descending": 1.0, "functional#walk.files_temporarily_show_hidden": 1.0, "functional#walk.font_size_dialog": 1.0, "functional#walk.settings_dialogs_and_links": 1.0, "functional#walk.settings_rows_complete": 1.0, "functional#walk.settings_switches_show_and_store_values": 1.0, "regression#walk.files_folder_item_counts": 1.0, "regression#walk.files_search_highlights_query": 1.0, "regression#walk.main_screen_unchanged": 1.0, "regression#walk.no_crash_recorded": 1.0, "regression#walk.update_keeps_settings": 1.0, "requirements#old_views_removed": 1.0, "requirements#screens_drawn_by_compose": 1.0, "requirements#uses_fossify_compose_blocks": 1.0, "requirements#compose_ui_tests_for_each_screen": 1.0, "constraint#lint_and_detekt_not_loosened": 1.0, "constraint#app_id_and_sdk_levels_unchanged": 1.0, "constraint#existing_dependency_versions_unchanged": 1.0, "constraint#all_flavors_build_debug_and_release": 1.0, "constraint#detekt_and_lint_pass": 1.0, "requirements#agent_unit_tests_pass": 1.0, "gate#migration_started": 1.0, "cheating#no_prebuilt_binaries": 1.0, "visual#files_list": 1.0, "visual#files_selection": 1.0, "visual#favorites_empty": 1.0, "visual#archive": 1.0, "visual#editor": 1.0, "visual#settings": 1.0 }, "scoring_breakdown": { "base_score": 0.9887, "categories": { "functional": { "passed": 39, "total": 40, "weight": 0.45, "raw_weight": 0.45, "score": 0.975, "contribution": 0.4387 }, "regression": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "requirements": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "visual": { "passed": 6, "total": 6, "weight": 0.25, "raw_weight": 0.25, "score": 1.0, "contribution": 0.25 }, "code_quality": { "passed": 0.72, "total": 1.0, "weight": 0.0, "raw_weight": 0.0, "score": 0.72, "contribution": 0.0, "violations_count": 4 } }, "multipliers_applied": [], "logs": [ "WARNING: Test 'Test draggingAfterALongPressSelectsThePassedItems(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test listsTheTopOfTheArchiveFoldersFirst(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchFindsNamesThatGetLongerWhenNormalized(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test secondLongPressSelectsTheRangeInBetween(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test closeButtonClosesTheSearch(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backGoesUpAndClosesAtTheTop(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test tappingAFileOpensIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridCanHideTheFileNames(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test entriesWithTheSamePathAreShown(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test createButtonCreatesFoldersAndFiles(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressSelectsAndShowsTheActionsOverTheToolbar(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test unreadableContentClosesTheEditor(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test conditionalRowsAreShownLikeBefore(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test folderItemCountsStayAfterTheSearch(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pickingMultipleFilesConfirmsTheSelection(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test keyboardSuggestsNoWords(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridViewIsUsedWhereItIsSet(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test showsTheHomeFolderWithFoldersFirst(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test tapsToggleTheSelectionAndTheTitleSelectsAll(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rowsOpenTheirScreens(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheOpenFolder(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pullingDownDoesNothingWhileSelecting(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test saveWritesTheFile(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rootAccessRowIsShownOnRootedDevices(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test valuesStayAfterRotation(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test titleSelectsAllThenEndsTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test missingArchiveShowsAnError(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test removeActionRemovesTheSelectedFavorites(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pinchingZoomsTheText(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test storageBreadcrumbLetsPickTheStorage(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openWithOffersTheAppsForTheFile(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test discardingUnsavedChangesLeavesTheFileAsItWas(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test emptyFileIsReadyForTyping(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test unsavedEditsAndTheCursorSurviveTheProcessBeingKilled(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test closingTheSearchGoesToTheCurrentMatch(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test placeholderLinkAddsAFolderPickedInTheFilePicker(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchMovesTheCursorToTheMatches(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pinchingTheGridChangesTheColumnCount(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test breadcrumbsOpenTheirFolders(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test selectionStaysAfterRotation(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test protectedArchiveIsListedAfterTheRightPassword(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rowsShowTheirLabels(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test shownTabsArePickedInADialog(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test creatingADocumentConfirmsTheShownFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pullingDownRefreshesTheFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test fastScrollerJumpsThroughLongFolders(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test opensTheRealPathPassedByTheFileManager(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test creatingADocumentWithoutANameAsksForIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test foldersOpenOnTapAndBackGoesUp(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test quickBackPressesGoUpOneFolderEach(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openingAFolderFromAnotherAppShowsIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test favoritesAreListed(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchNeedsTwoCharacters(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteGoesOnWhenTheFolderGetsReloadedMeanwhile(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test showsAllSectionsAndRowsInTheirOrder(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test missingFileOpensAnEmptyEditor(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test secondLongPressSelectsTheRangeInBetween(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchShowsTheMatchesGroupedByFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test savingToAPickedFileWorksAfterTheProcessWasKilled(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressSelectsAndTapsToggleTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test onlyFoldersGetACheckInTheGrid(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test leavingNeedsTwoBackPressesWhenSetSo(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressOnTheMenuButtonOpensTheMenu(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteAsksFirst(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test actionsDependOnTheSelectedItems(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test topBarHasTheMenuActions(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openFolderSurvivesTheProcessBeingKilled(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test dateAndTimeFormatIsPickedInADialog(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheEditsTheCursorAndTheSearch(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test doubleTapStartsFromTheStoredZoom(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test valuesAreReadAgainWhenTheScreenResumes(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test doubleTapTogglesTheZoom(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test decompressExtractsEverythingIntoThePickedFolder(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test fontSizeIsPickedInADialog(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test protectedHiddenItemsAreShownOnlyAfterThePassword(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test itemMenuRemovesTheFavorite(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rowsOfOlderAndroidVersionsAndGooglePlay(org.fossify.filemanager.SettingsScreenContentTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test passwordProtectionsAskForThePasswordFirst(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test foldersOpenOnTapFilesDoNot(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test saveAsWritesAnotherFile(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test selectAllFromTheMenu(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test foldersAreShownFromTheirTop(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test opensFilesFromOtherApps(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test emptyListShowsThePlaceholder(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test propertiesShowTheItem(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backArrowClosesTheScreen(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backAndCloseEndTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test draggingAfterALongPressSelectsThePassedItems(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test switchesShowTheStoredValues(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test topBarActionAddsAFavorite(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test renameRenamesTheItem(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test listsArchivesSharedAsContentUris(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test matchesStayWhenTheSearchedTextGetsTooShort(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test opensContentUris(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteDoesNotAskWhenTurnedOff(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheOpenFolder(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backClosesTheSearchFirst(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressOnAFolderOfTheSearchResultsDoesNothingWhileSelecting(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridShowsFoldersAndFilesInSeparateRows(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test rotationKeepsTheFocus(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test leavingWithUnsavedChangesAsksToSave(org.fossify.filemanager.TextEditorScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test openFolderSurvivesTheProcessBeingKilled(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test copyPathCopiesItAndEndsTheSelection(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test switchesToggleTheStoredValues(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test hiddenItemsCanBeUnhidden(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test backAndCloseEndTheSelection(org.fossify.filemanager.FilesTabSelectionTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test navigationBarHasNoScrim(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test cancellingThePasswordClosesTheArchive(org.fossify.filemanager.ArchiveViewerScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test storedFontSizeIsShown(org.fossify.filemanager.SettingsScreenTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test pullingDownDoesNothingWhenItIsTurnedOff(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test tappingAFolderOfTheSearchResultsOpensIt(org.fossify.filemanager.FilesTabTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test itemMenuEndsTheSelection(org.fossify.filemanager.ManageFavoritesScreenTest)' did not match any category rules. It will be IGNORED and not scored." ] }, "status_description": "Agent created a patch that fails the validate.sh", "code_quality_score": 0.72, "code_quality_violations": 4 }}1234567891011121314151617181920212223242526To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:detekt................................................................................
80 kotlin files were analyzed.
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 10s1 actionable task: 1 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html1emulator ready123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preFossDebugBuild UP-TO-DATE> Task :app:dataBindingMergeDependencyArtifactsFossDebug UP-TO-DATE> Task :app:extractFossDebugSupportedLocales UP-TO-DATE> Task :app:mapFossDebugSourceSetPaths UP-TO-DATE> Task :app:generateFossDebugLocaleConfig UP-TO-DATE> Task :app:generateFossDebugResources UP-TO-DATE> Task :app:mergeFossDebugResources UP-TO-DATE> Task :app:dataBindingGenBaseClassesFossDebug UP-TO-DATE> Task :app:generateFossDebugBuildConfig UP-TO-DATE> Task :app:packageFossDebugResources UP-TO-DATE> Task :app:processFossDebugNavigationResources UP-TO-DATE> Task :app:parseFossDebugLocalResources UP-TO-DATE> Task :app:generateFossDebugRFile UP-TO-DATE> Task :app:compileFossDebugKotlin UP-TO-DATE> Task :app:javaPreCompileFossDebug UP-TO-DATE> Task :app:compileFossDebugJavaWithJavac UP-TO-DATE> Task :app:checkFossDebugAarMetadata UP-TO-DATE> Task :app:compileFossDebugNavigationResources UP-TO-DATE> Task :app:createFossDebugCompatibleScreenManifests UP-TO-DATE> Task :app:extractDeepLinksFossDebug UP-TO-DATE> Task :app:processFossDebugMainManifest UP-TO-DATE> Task :app:processFossDebugManifest UP-TO-DATE> Task :app:processFossDebugManifestForPackage UP-TO-DATE> Task :app:processFossDebugResources UP-TO-DATE> Task :app:bundleFossDebugClassesToCompileJar UP-TO-DATE> Task :app:preFossDebugAndroidTestBuild SKIPPED> Task :app:generateFossDebugAndroidTestLintModel> Task :app:extractProguardFiles UP-TO-DATE> Task :app:generateFossDebugLintReportModel> Task :app:preFossDebugUnitTestBuild UP-TO-DATE> Task :app:generateFossDebugUnitTestLintModel> Task :app:lintAnalyzeFossDebugAndroidTest> Task :app:lintAnalyzeFossDebugUnitTest> Task :app:lintAnalyzeFossDebug
> Task :app:lintReportFossDebugWrote HTML report to file:///workspace/testbed/app/build/reports/lint-results-fossDebug.htmlWrote SARIF report to file:///workspace/testbed/app/build/reports/lint-results-fossDebug.sarifLint found 4 warnings (and 95 warnings filtered by baseline lint-baseline.xml)
4 errors/warnings were listed in the baseline file (/workspace/testbed/app/lint-baseline.xml) but not found in the project; perhaps they have been fixed?
> Task :app:lintFossDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 43s33 actionable tasks: 8 executed, 25 up-to-dateConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html1234567891011121314151617181920212223242526To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :benchPrefetchprefetch :: 0 unresolved
> Task :app:benchPrefetchprefetch :app: 0 unresolved
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 23s2 actionable tasks: 2 executed10.9887.gitattributes+6
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/functional.jsonAdded+309
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/gate.jsonAdded+7
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/requirements.jsonAdded+82
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/tests.jsonAdded+6
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-b346ac3e-1/verifier/work/visual.jsonAdded+85
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/claude-code.txtAdded+3
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/.claude.jsonAdded+24
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/.last-cleanupAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/backups/.claude.json.backup.1792577406784Added+4
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec.jsonlAdded+3
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a4fc5fa27db62f834.jsonlAdded
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a4fc5fa27db62f834.meta.jsonAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a7312b77b6711251e.jsonlAdded
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/subagents/agent-a7312b77b6711251e.meta.jsonAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/b0ai7c0ya.txtAdded+1338
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/b1y9oc321.txtAdded+1338
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/b60plc6wx.txtAdded+770
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/btxi1cjsi.txtAdded+825
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/53a46ba4-2d10-40ce-bc37-d7b910708dec/tool-results/bx8x64wf0.txtAdded+754
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/memory/MEMORY.mdAdded+2
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/memory/lint-baseline-ci-paths.mdAdded+19
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/sessions/projects/-workspace-testbed/memory/robolectric-test-environment.mdAdded+26
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/agent/trajectory.jsonAdded+3
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/artifacts/manifest.jsonAdded+10
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/config.jsonAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/result.jsonAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/generated/logs/artifacts/_detailed_scores.jsonAdded+251
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/generated/logs/artifacts/_submission.patchAdded
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/generated/logs/artifacts/emulator_process_bench.logAdded+121
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/artifacts/manifest.jsonAdded+11
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleCoreDebug.logAdded+109
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleCoreRelease.logAdded+115
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleFossRelease.logAdded+115
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleGplayDebug.logAdded+109
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/build-assembleGplayRelease.logAdded+115
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/code_quality.jsonAdded+5
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/crash.logAdded
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/detailed_scores.jsonAdded+251
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/detekt.logAdded+26
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/emulator.logAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/evaluator.logAdded
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/lint.logAdded+66
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/prefetch-1.logAdded+26
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/reward.txtAdded+1
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_extract_to_chosen_folder.pngAdded

Large File Pointer Details
- SHA256: 9882081419985641ad9890564e3540b1eff55b81a229d5fd6192634d28635aa5
- Pointer size: 131 Bytes
- Size of remote file: 164 kB
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_folder_survives_rotation.pngAdded

Large File Pointer Details
- SHA256: f94f5b1f2244c66b47531841f89c26e9e66e76ee6ef841c7fabd12f5ce592044
- Pointer size: 130 Bytes
- Size of remote file: 42.2 kB
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_lists_entries.pngAdded

Large File Pointer Details
- SHA256: 786d1fbaa618189b13d151d3b12564ab2ef16d1fd840e8340ef6e41b2510e65f
- Pointer size: 130 Bytes
- Size of remote file: 42.5 kB
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_password.pngAdded

Large File Pointer Details
- SHA256: bc61ab2ac56b43251cd4638ed567a8d6e75be014b5606be8cbbdd978c20a9dac
- Pointer size: 130 Bytes
- Size of remote file: 44.2 kB
submissions/claude-code__claude-opus-5-5/efflora__fossify-compose-screens/t-cf76be5f-1/verifier/screens/archive_walk_into_folders_and_back.pngAdded

Large File Pointer Details
- SHA256: 786d1fbaa618189b13d151d3b12564ab2ef16d1fd840e8340ef6e41b2510e65f
- Pointer size: 130 Bytes
- Size of remote file: 42.5 kB