-
Notifications
You must be signed in to change notification settings - Fork 0
fix(android): expo fpplan view #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis change updates the Changes
Sequence Diagram(s)sequenceDiagram
participant Manager as ExpofpViewManager
participant View as FplanView
participant Super as Superclass
Manager->>View: createViewInstance()
Manager->>View: setSettings(settingsMap)
Manager->>View: onDropViewInstance(view)
Manager->>View: view.destroy()
Manager->>Super: super.onDropViewInstance(view)
Possibly related PRs
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
android/src/main/java/com/expofp/ExpofpViewManager.kt (2)
30-30
: View instantiation correctly updated.The code now properly instantiates a
FplanView
instead ofSharedFplanView
. However, you could consider usingval
instead ofvar
since the variable isn't being reassigned.- var view = FplanView(reactContext) + val view = FplanView(reactContext)
23-23
: Consider updating generic type parameter.The class extends
SimpleViewManager<View>
but now specifically works withFplanView
. For better type safety, consider updating the generic parameter to match.-class ExpofpViewManager : SimpleViewManager<View>() { +class ExpofpViewManager : SimpleViewManager<FplanView>() {This would provide better type safety and eliminate the need for type casting.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
android/src/main/java/com/expofp/ExpofpViewManager.kt
(2 hunks)
🔇 Additional comments (3)
android/src/main/java/com/expofp/ExpofpViewManager.kt (3)
17-17
: Import change looks good.The import has been correctly updated from
SharedFplanView
toFplanView
, which aligns with the PR objective to update the codebase to useFplanView
.
35-35
: Method signature properly updated.The
onDropViewInstance
method signature has been correctly updated to accept aFplanView
parameter instead ofSharedFplanView
.
41-41
: Method signature properly updated.The
setSettings
method signature has been correctly updated to accept aFplanView
parameter instead ofSharedFplanView
.
Summary by CodeRabbit