Updated on 2026-08-14

This commit is contained in:
Tangem 2018-06-28 17:12:31 +03:00
parent e58ca25402
commit b63496aeaa
4 changed files with 11 additions and 5 deletions

View file

@ -1,6 +1,7 @@
package com.tangem.presentation.fragment;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
@ -646,9 +647,14 @@ public class LoadedWallet extends Fragment implements SwipeRefreshLayout.OnRefre
ivQR.setOnClickListener(v1 -> doShareWallet(true));
btnLoad.setOnClickListener(v1 -> {
Intent intent = new Intent(Intent.ACTION_VIEW, Objects.requireNonNull(CoinEngineFactory.Create(mCard.getBlockchain())).getShareWalletURI(mCard));
intent.addCategory(Intent.CATEGORY_DEFAULT);
startActivity(intent);
try {
Intent intent = new Intent(Intent.ACTION_VIEW, Objects.requireNonNull(CoinEngineFactory.Create(mCard.getBlockchain())).getShareWalletURI(mCard));
intent.addCategory(Intent.CATEGORY_DEFAULT);
startActivity(intent);
} catch (ActivityNotFoundException e) {
e.printStackTrace();
}
}
);