Repository navigation
Androidのプリセットウィジェットのサイズを2x2に固定 - #6586
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AnY1Ffc9te3qeT6wUvzcCp
Contributor
|
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 (3)
📝 WalkthroughWalkthroughプリセットウィジェットをAndroidで2x2固定に変更しました。 Changesプリセットウィジェットのサイズ設定
Estimated code review effort: 2 (Simple) | ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Member
Author
|
@coderabbitai review |
Contributor
✅ Action performedReview finished.
|
This was referenced Aug 7, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Android のプリセットウィジェットを 2x2 固定サイズにし、リサイズを無効化しました。#6585 のフォローアップです。
一覧は
ListView(PresetsWidgetService)で縦スクロールできるため、ウィジェットを引き伸ばしても見られる情報は増えません。リサイズを許しても収まりの悪い比率で置かれる余地が増えるだけなので、resizeModeをnoneにしています。変更の種類
変更内容
presets_widget_info.xml:resizeModeをhorizontal|verticalからnoneへ変更し、意味を持たなくなったminResizeWidth/minResizeHeightを削除。既定サイズ(2x2、minWidth/minHeight110dp、targetCell2x2)は変更なし。PresetsWidgetProvider.kt: サイズ固定の理由をクラスコメントに反映(実装の変更はなし)。docs/home-screen-widgets.md: サイズ方針の記述を更新。iOS 側は変更していません。WidgetKit にはスクロールが無く、
systemSmall/systemMedium/systemLargeで実際に表示件数が変わります。またファミリーの選択は設置時のユーザーの選択であってリサイズではないため、大きいサイズを残す判断は維持しています。回帰リスクと緩和
resizeModeはウィジェット情報のメタデータで、表示ロジック(PresetsWidgetProvider/PresetsWidgetService)には触れていません。既に設置されているウィジェットは、ランチャーがメタデータを再読み込みした時点でリサイズハンドルが出なくなります。ユーザーが以前に引き伸ばしていた場合、そのサイズのまま残る可能性はありますが、表示はListViewが担うため崩れません。ローカルで実行したコマンド
なお本 PR は Android のリソース XML とドキュメントのみの変更で、JS/TS には手を入れていません(上記は変更が無いことの確認として実行)。
テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ることネイティブビルド環境が無いため、実機でのリサイズハンドル非表示の確認は未実施です。
関連Issue
#6585 のフォローアップ
スクリーンショット(任意)
ネイティブビルド環境が無いため未添付です。
Generated by Claude Code
Summary by CodeRabbit
仕様変更
ドキュメント