breadwallet / breadwallet-android

The Android version of the Bread bitcoin wallet.
MIT License
389 stars 424 forks source link

Any way to show/filter some token : Help #175

Closed swapnilsinha17 closed 4 years ago

swapnilsinha17 commented 4 years ago

Hiii @DrewCarlson Is there any way that i can show/filter out some tokens?

Tried out : I have commented some tokens from tokens.json file but yet these are showing in app. Thanks.

DrewCarlson commented 4 years ago

The embedded tokens.json file is used for the first run and updated using the BRD API. The remote update can be disabled by removing this line: https://github.com/breadwallet/breadwallet-android/blob/3de7a22e4c3c5dac6847080a4697431bd64d58f2/app/src/main/java/com/breadwallet/tools/util/TokenUtil.kt#L110

swapnilsinha17 commented 4 years ago

Thanks for Reply @DrewCarlson How i can hide theBRD Token from Home?

DrewCarlson commented 4 years ago

Remove it from the default wallets list. https://github.com/breadwallet/breadwallet-android/blob/8b7ce471ae70cb294c512c8d4f8e440700a24cfb/app/src/main/java/com/breadwallet/app/BreadApp.kt#L164-L175

swapnilsinha17 commented 4 years ago

Thanks:)