With Random sorting, a photo deleted in the fullscreen view stays in the folder grid
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
調査の方向性
app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt の MediaActivity.onResume から始め、特にランダムソート時の再読み込みチェックと mWasFullscreenViewOpen の処理を確認してください。フォルダー内のみのランダムソートを設定し、全画面表示中に写真を削除または名前変更してからフォルダーに戻ることで再現できます。フォルダーのグリッドとスワイプナビゲーションに削除済みまたは古いパスが含まれず、残りの写真の順序が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I can reproduce the bug with the latest version given here.
- I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- This issue contains only one bug.
- I have read and understood the contribution guidelines.
Affected app version
1.14.3
Affected Android/Custom ROM version
Android 11 (API 30), stock emulator image
Affected device model
Android Emulator (x86, 1080×1920)
How did you install the app?
None
Steps to reproduce the bug
- Open a folder with a few photos (here
Tripwithblue.jpg,green.jpg,purple.jpg,red.jpg,yellow.jpg). - Sort by → Random → tick "Use for this folder only" → OK.
- Tap
blue.jpgto open it in fullscreen. - Tap Delete → Yes. The viewer moves on to the next photo.
- Press Back to return to the folder.
- Tap another photo and swipe through the folder.
Expected behavior
blue.jpg is no longer in the folder grid, as with every other sorting.
Actual behavior
The grid still shows the thumbnail of blue.jpg, although the file is gone from the folder (it is in the recycle bin). Tapping it does nothing. Opening a neighbouring photo and swiping reaches a page titled blue.jpg that says "Failed to load media."
The same happens with Rename in the fullscreen view: after renaming yellow.jpg to yellow2.jpg and going back, the grid still shows yellow.jpg.
It stays like this until the folder is refreshed by pull-to-refresh or closed and opened again. With the default sorting (not Random), the same steps remove the photo from the grid right away.
Screenshots/Screen recordings
| grid after delete in viewer | viewer failed to load |
|---|---|
Step 5: back in the Random-sorted folder, blue.jpg is still in the grid after it was deleted in the fullscreen view. |
Step 6: swiping from a neighbouring photo reaches blue.jpg, "Failed to load media." |
| grid after rename in viewer |
|---|
After renaming yellow.jpg to yellow2.jpg in the fullscreen view, the grid still shows yellow.jpg. |
Additional information
MediaActivity.onResume skips the reload for Random sorting once a fullscreen view has been opened, so that the order is not reshuffled when coming back:
https://github.com/FossifyOrg/Gallery/blob/bde42f4a055205382bff299a5f06a399bc7da99d/app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt#L252-L254
Nothing removes or updates the changed item in the list that is kept, and mWasFullscreenViewOpen is never set back to false after it is set here, so later returns to the folder do not reload it either:
https://github.com/FossifyOrg/Gallery/blob/bde42f4a055205382bff299a5f06a399bc7da99d/app/src/main/kotlin/org/fossify/gallery/activities/MediaActivity.kt#L968
Possible fix: on resume, remove the paths that no longer exist from the kept list (without reshuffling); that keeps the order and drops deleted or renamed items.
- 主要言語
- Kotlin
- スター
- 3.8k
- フォーク
- 270
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
FossifyOrg/Gallery のほかの issue
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
FossifyOrg/Gallery#1215 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
"Fix Date Taken value" ignores OffsetTimeOriginal対応中かも @PedroFlores199 が 5 日前に担当しました。 オープンbug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
FossifyOrg/Gallery#1213 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
App crashes if AccessMediaLocation permission is revoked再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
FossifyOrg/Gallery#1196 · コメント 12 件 ·
メンテナーはふだん 1 日以内に返信
-
Renaming a locked folder silently removes its lock再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
FossifyOrg/Gallery#1195 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
FossifyOrg/Gallery#1167 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
FossifyOrg/Gallery の issue をすべて見る
似ている issue
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsotto/sotto-authenticator#139 ·
メンテナーはふだん 1 日以内に返信
-
enhancement module:webview p3
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
NucleusFramework/Nucleus#1004 ·
メンテナーはふだん 1 日以内に返信
-
docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
danielecanci/2ndCare#4 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
commons-app/apps-android-commons#7496 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
⚠️ Priority: P1 - High 🐛 Type:Bug 📏 Size: S 🕒 State:Awaiting Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100