Repository navigation
Androidで走行中画面のPiP表示に対応 - #6076
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAndroid向けPicture-in-Pictureをネイティブで有効化し、React Native側とJotaiで状態同期、PiP専用UIと設定画面、翻訳を追加してアプリに統合しています。 ChangesAndroid Picture-in-Picture機能
Estimated code review effort 🎯 4 (Complex) | ⏱️ ~45 分
🚥 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 docstrings
🧪 Generate unit tests (beta)
Comment |
10c87f5 to
24a2b6a
Compare
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 `@android/app/src/main/java/me/tinykitten/trainlcd/MainActivity.kt`:
- Around line 77-85: Don't emit
PictureInPictureModule.emitPictureInPictureModeChanged(true) before attempting
PiP; instead call Activity.enterPictureInPictureMode(params) inside the posted
Runnable, capture its boolean return and only emit true when it returns true,
and emit false if it returns false or an IllegalStateException is thrown. Remove
the pre-enter emit, keep the try/catch around enterPictureInPictureMode(params)
(emit false in the catch), and ensure onPictureInPictureModeChanged(...) remains
the canonical source of PiP state changes so JS is ultimately synchronized.
🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 53a55f3a-197d-4ab3-bdda-9e0c2c852a4a
📒 Files selected for processing (17)
android/app/src/main/AndroidManifest.xmlandroid/app/src/main/java/me/tinykitten/trainlcd/MainActivity.ktandroid/app/src/main/java/me/tinykitten/trainlcd/PictureInPictureModule.ktandroid/app/src/main/java/me/tinykitten/trainlcd/TrainLCDPackage.ktassets/translations/en.jsonassets/translations/ja.jsonsrc/components/AndroidPictureInPictureView.tsxsrc/components/Permitted.tsxsrc/constants/asyncStorage.tssrc/hooks/index.tssrc/hooks/useAndroidPictureInPicture.tssrc/screens/AndroidSettings.tsxsrc/screens/AppSettings.tsxsrc/screens/Main.tsxsrc/stacks/MainStack.tsxsrc/store/atoms/pictureInPicture.tssrc/utils/native/android/pictureInPictureModule.ts
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Fixes Applied SuccessfullyFixed 1 file(s) based on 1 unresolved review comment. Files modified:
Commit: The changes have been pushed to the Time taken: |
Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <[email protected]>
|
Note Docstrings generation - SUCCESS |
Docstrings generation was requested by @TinyKitten. * #6076 (comment) The following files were modified: * `android/app/src/main/java/me/tinykitten/trainlcd/MainActivity.kt` * `android/app/src/main/java/me/tinykitten/trainlcd/PictureInPictureModule.kt` * `android/app/src/main/java/me/tinykitten/trainlcd/TrainLCDPackage.kt`
概要
変更の種類
変更内容
テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
closes #6035
スクリーンショット(任意)
Summary by CodeRabbit
New Features
Chores