anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.44k stars 906 forks source link

Allow Disconnect of MWA #960

Open alex-fung opened 1 month ago

alex-fung commented 1 month ago

Currently, if other wallets are available on a dApp on Android, the only one that can be used is the MWA. This PR updates the WalletProvider so that it won't be auto-selected and can be disconnected if other wallets are available.

Comments posted at https://github.com/alex-fung/wallet-adapter/pull/1 are already addressed (opened against wrong branch)

Before: https://github.com/anza-xyz/wallet-adapter/assets/2409008/19a522f9-d8f1-4ad9-8374-03ac8ca35de8

After: With MWA and another wallet: https://github.com/anza-xyz/wallet-adapter/assets/2409008/36dca9c4-b585-4017-a84a-0fadeb8c10eb With just MWA: https://github.com/anza-xyz/wallet-adapter/assets/2409008/da684467-2791-428d-8783-3a9c5485542c

alirezaayande92 commented 1 month ago

Currently, if other wallets are available on a dApp on Android, the only one that can be used is the MWA. This PR updates the WalletProvider so that it won't be auto-selected and can be disconnected if other wallets are available.

Comments posted at https://github.com/alex-fung/wallet-adapter/pull/1 are already addressed (opened against wrong branch)