Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: import keystone wallets#8329

Merged
Overtorment merged 1 commit into
masterfrom
fix-import-keystone
Feb 26, 2026
Merged

FIX: import keystone wallets#8329
Overtorment merged 1 commit into
masterfrom
fix-import-keystone

Conversation

@Overtorment

@Overtorment Overtorment commented Feb 26, 2026

Copy link
Copy Markdown
Member
  • on android, top element was not rendering (blank spot), on ios all good

Note

Low Risk
Low risk UI-only change limited to FlatList inset/clipping props; main risk is minor layout regressions across devices/OS versions.

Overview
Fixes Android rendering/layout issues on ImportWalletDiscovery by making FlatList content inset adjustments iOS-only and explicitly disabling them on Android.

Also disables removeClippedSubviews to prevent items from being clipped/blank during wallet discovery scrolling.

Written by Cursor Bugbot for commit 7a9a2a8. This will update automatically on new commits. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: removeClippedSubviews may regress iOS rendering
    • Changed Platform.OS !== 'android' (which set true on iOS) to Platform.OS === 'android' ? false : undefined so iOS keeps FlatList's default behavior.

Create PR

Or push these changes by commenting:

@cursor push f917e58687
Preview (f917e58687)
diff --git a/screen/wallets/ImportWalletDiscovery.tsx b/screen/wallets/ImportWalletDiscovery.tsx
--- a/screen/wallets/ImportWalletDiscovery.tsx
+++ b/screen/wallets/ImportWalletDiscovery.tsx
@@ -239,8 +239,9 @@
         ListEmptyComponent={ListEmptyComponent}
         keyExtractor={keyExtractor}
         renderItem={renderItem}
-        automaticallyAdjustContentInsets
-        contentInsetAdjustmentBehavior="always"
+        automaticallyAdjustContentInsets={Platform.OS === 'ios'}
+        contentInsetAdjustmentBehavior={Platform.OS === 'ios' ? 'always' : 'never'}
+        removeClippedSubviews={Platform.OS === 'android' ? false : undefined}
       />
       <View style={[styles.center, stylesHook.center]}>
         {bip39 && (
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

Comment thread screen/wallets/ImportWalletDiscovery.tsx Outdated

@GladosBlueWallet GladosBlueWallet left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You fixed it. By disabling things. Classic.

renderItem={renderItem}
automaticallyAdjustContentInsets
contentInsetAdjustmentBehavior="always"
automaticallyAdjustContentInsets={Platform.OS === 'ios'}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

automaticallyAdjustContentInsets / contentInsetAdjustmentBehavior are iOS-focused props. Flipping them based on Platform.OS is fine, but it’s worth checking whether the underlying issue was actually Android-specific. If it was, consider isolating the change to Android-only (and leaving iOS behavior untouched) to avoid iOS regressions from subtle inset differences.

contentInsetAdjustmentBehavior="always"
automaticallyAdjustContentInsets={Platform.OS === 'ios'}
contentInsetAdjustmentBehavior={Platform.OS === 'ios' ? 'always' : 'never'}
removeClippedSubviews={false}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removeClippedSubviews={false} globally disables clipping/virtualization optimizations for this list. If discovery can produce many wallets/accounts, this can turn into a memory/perf problem on low-end devices. If this is a workaround for a specific rendering bug, consider scoping it (e.g., only Android, only when the problematic condition is present, or only when wallets.length is below some threshold).

@Overtorment Overtorment merged commit 0d1f094 into master Feb 26, 2026
14 of 15 checks passed
@Overtorment Overtorment deleted the fix-import-keystone branch February 26, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants