Repository navigation
fix: v11.6.2 and some minor fixes - #1465
Conversation
… valid in layouts and navgraphs.
📝 WalkthroughWalkthroughThis PR updates project versions to v11.6.2, introduces XML reference validation tooling, expands localization support across multiple languages with new strings for instant usernames and transaction metadata, updates layout preview contexts, and refines blockchain synchronization and username voting logic with improved error handling. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~35 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt (1)
524-541:⚠️ Potential issue | 🟡 MinorClamp computed depth to prevent confusing negative values during edge cases.
The formula
lastBlockSeenHeight - appearedAtChainHeight + 1can produce negative or zero values if the chain height lags (startup, reorg). While comparisons likedepthInBlocks >= requiredDepthstill work correctly with negative values, clamping improves semantic clarity by ensuring depth is always non-negative.🔧 Suggested fix
- transactionConfidence.depthInBlocks = wallet.lastBlockSeenHeight - transactionConfidence.appearedAtChainHeight + 1 + val computedDepth = + wallet.lastBlockSeenHeight - transactionConfidence.appearedAtChainHeight + 1 + transactionConfidence.depthInBlocks = maxOf(0, computedDepth)🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt` around lines 524 - 541, The computed depthInBlocks assignment inside BlockchainServiceImpl (where transactionConfidence.depthInBlocks is set to wallet.lastBlockSeenHeight - transactionConfidence.appearedAtChainHeight + 1) should be clamped to never be negative to avoid confusing negative/zero values; modify the assignment in that block (the BUILDING branch where requiredDepth and result are computed, and queueListeners is called) to set depthInBlocks to the non-negative result (e.g., use a clamp/coerceAtLeast with 0) before comparing to requiredDepth and invoking queueListeners.
🧹 Nitpick comments (1)
wallet/res/layout/activity_explore.xml (1)
23-23:tools:contextpoints to a Fragment on an Activity layout.
activity_explore.xmlis an Activity-level layout (it hosts theNavHostFragmentcontainer). Settingtools:contexttoExploreFragmentinstead of the owning Activity means the Layout Editor will resolve the preview theme from the Fragment, which may not accurately reflect the Activity's window/theme decorations. Consider keeping it asExploreActivity(or whichever Activity inflates this layout) for a faithful design-time preview.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@wallet/res/layout/activity_explore.xml` at line 23, The layout activity_explore.xml incorrectly sets tools:context to ExploreFragment; change the tools:context attribute to the Activity that hosts this layout (e.g., ExploreActivity or the actual Activity class that inflates activity_explore.xml) so the Layout Editor uses the Activity/window theme and decorations instead of the Fragment's, by updating the tools:context value from ExploreFragment to the correct Activity class name.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@wallet/CHANGES`:
- Around line 2-6: Update the CHANGES entry so all bullets use consistent
capitalization: change the second bullet text "fix CoinJoin Mixing fee issues"
to start with an uppercase "Fix" (i.e., "Fix CoinJoin Mixing fee issues") so it
matches the other bullets like "Speed up sending from a CoinJoin Wallet" and
"Support Compressed Headers from Dash Network".
In `@wallet/res/values-fil/strings-dashpay.xml`:
- Line 20: Fix spacing around the %s placeholder and remove unintended double
spaces in the updated string resources; specifically update the value of
new_account_secondary_confirm_message so there is a space after the %s (e.g.,
"%s bilang...") and ensure there are no double spaces before "username" (and
apply the same corrections to the other new strings mentioned in the comment so
all placeholder+word combos and any accidental double spaces are fixed).
In `@wallet/res/values-fil/strings.xml`:
- Around line 206-212: The strings use inconsistent Tagalog terms for "creation"
("Paglikha" vs "Paggawa") which will cause UI inconsistency; update the relevant
string resources (restore_wallet_creation_date_label,
restore_wallet_creation_date_info, restore_wallet_select_date,
restore_wallet_selected_date, restore_wallet_date_picker_title,
wallet_creation_date_info_title, wallet_creation_date_info_description) to use a
single chosen term (either "Paglikha" or "Paggawa") across all entries so
wording is consistent, and verify grammar/fluency after replacing each
occurrence.
---
Outside diff comments:
In `@wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt`:
- Around line 524-541: The computed depthInBlocks assignment inside
BlockchainServiceImpl (where transactionConfidence.depthInBlocks is set to
wallet.lastBlockSeenHeight - transactionConfidence.appearedAtChainHeight + 1)
should be clamped to never be negative to avoid confusing negative/zero values;
modify the assignment in that block (the BUILDING branch where requiredDepth and
result are computed, and queueListeners is called) to set depthInBlocks to the
non-negative result (e.g., use a clamp/coerceAtLeast with 0) before comparing to
requiredDepth and invoking queueListeners.
---
Nitpick comments:
In `@wallet/res/layout/activity_explore.xml`:
- Line 23: The layout activity_explore.xml incorrectly sets tools:context to
ExploreFragment; change the tools:context attribute to the Activity that hosts
this layout (e.g., ExploreActivity or the actual Activity class that inflates
activity_explore.xml) so the Layout Editor uses the Activity/window theme and
decorations instead of the Fragment's, by updating the tools:context value from
ExploreFragment to the correct Activity class name.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (31)
build.gradlecheck_xml_references.shcommon/src/main/res/layout/vertical_segmented_picker.xmlcommon/src/main/res/values-uk/strings.xmlfeatures/exploredash/src/main/res/values-uk/strings-explore-dash.xmlintegrations/crowdnode/src/main/res/layout/dialog_staking.xmlwallet/CHANGESwallet/assets/checkpoints-testnet.txtwallet/assets/checkpoints.txtwallet/build.gradlewallet/res/layout/activity_explore.xmlwallet/res/layout/block_username_request_view.xmlwallet/res/layout/fragment_transaction_metadata_settings.xmlwallet/res/layout/invite_error_envelope_view.xmlwallet/res/layout/invite_preview_envelope_view.xmlwallet/res/layout/username_request_date_view.xmlwallet/res/layout/username_request_group_view.xmlwallet/res/layout/username_request_view.xmlwallet/res/values-fil/strings-dashpay.xmlwallet/res/values-fil/strings-extra.xmlwallet/res/values-fil/strings.xmlwallet/res/values-ko/strings-dashpay.xmlwallet/res/values-ko/strings-extra.xmlwallet/res/values-ko/strings.xmlwallet/res/values-uk/strings-dashpay.xmlwallet/res/values-uk/strings-extra.xmlwallet/res/values-uk/strings.xmlwallet/res/values/strings-extra.xmlwallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.ktwallet/src/de/schildbach/wallet/ui/dashpay/PlatformRepo.ktwallet/src/de/schildbach/wallet/ui/more/MoreFragment.kt
👮 Files not reviewed due to content moderation or server errors (1)
- wallet/assets/checkpoints.txt
Issue being fixed or feature implemented
Related PR's and Dependencies
Screenshots / Videos
How Has This Been Tested?
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Chores