Storage volume fix#1499
Conversation
…oupInterface.kt Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds a resilient StorageUtils.getAllExternalFilesDirs(context) fallback for external app-specific directories and updates CrashHandler, SettingsGroupDebug, DownloadService, and SettingsGroupInterface to consume it for crash logs, wine logs, and external-volume discovery. ChangesExternal Storage Directory Discovery Consolidation
Sequence Diagram(s)Possibly related PRs
Suggested reviewers
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@app/src/main/java/app/gamenative/ui/screen/settings/SettingsGroupInterface.kt`:
- Around line 471-475: The fallback label uses dir.name which is "files" for
every app-specific external directory; change the fallback to derive a more
unique volume name (e.g., the mount folder above the app data) by replacing the
fallback expression in the labels remember block (the dirs.map lambda where
sm?.getStorageVolume(dir)?.getDescription(ctx) ?: "SD Card (${dir.name})") with
something like sm?.getStorageVolume(dir)?.getDescription(ctx) ?: "SD Card
(${dir.parentFile?.parentFile?.name ?: dir.name})" so the code references the
parent folders of dir instead of the constant "files".
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 58daac64-0e7c-4336-b9e8-4260eb7ff688
📒 Files selected for processing (5)
app/src/main/java/app/gamenative/CrashHandler.ktapp/src/main/java/app/gamenative/service/DownloadService.ktapp/src/main/java/app/gamenative/ui/screen/settings/SettingsGroupDebug.ktapp/src/main/java/app/gamenative/ui/screen/settings/SettingsGroupInterface.ktapp/src/main/java/app/gamenative/utils/StorageUtils.kt
There was a problem hiding this comment.
3 issues found across 5 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…oupInterface.kt Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Description
Add support for using multiple storage drives and more compatibility with devices
Recording
Type of Change
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by CodeRabbit
New Features
Bug Fixes