Updated on 2026-08-14
This commit is contained in:
parent
cecb958d13
commit
b5c0595723
8 changed files with 225 additions and 200 deletions
|
|
@ -23,7 +23,7 @@ import com.tangem.domain.wallet.TangemCard;
|
|||
import com.tangem.util.Util;
|
||||
import com.tangem.presentation.dialog.NoExtendedLengthSupportDialog;
|
||||
import com.tangem.wallet.R;
|
||||
import com.tangem.data.network.task.VerifyCardTask;
|
||||
import com.tangem.data.task.VerifyCardTask;
|
||||
import com.tangem.presentation.dialog.WaitSecurityDelayDialog;
|
||||
|
||||
public class EmptyWalletActivity extends AppCompatActivity implements NfcAdapter.ReaderCallback, CardProtocol.Notifications {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,10 @@ import android.nfc.NfcAdapter;
|
|||
import android.nfc.Tag;
|
||||
import android.os.Bundle;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.tangem.presentation.fragment.LoadedWallet;
|
||||
import com.tangem.wallet.BuildConfig;
|
||||
import com.tangem.wallet.R;
|
||||
|
||||
import java.util.Objects;
|
||||
|
|
@ -25,6 +27,8 @@ public class LoadedWalletActivity extends AppCompatActivity {
|
|||
if (tag != null) {
|
||||
LoadedWallet fragment = (LoadedWallet) (getSupportFragmentManager().findFragmentById(R.id.loaded_wallet_fragment));
|
||||
fragment.onTagDiscovered(tag);
|
||||
if (BuildConfig.DEBUG)
|
||||
Toast.makeText(this, "onNFCReaderCallback 4", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import android.view.animation.Transformation;
|
|||
import android.widget.LinearLayout;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.scottyab.rootbeer.RootBeer;
|
||||
import com.skyfishjy.library.RippleBackground;
|
||||
|
|
@ -65,6 +66,8 @@ public class MainActivity extends AppCompatActivity implements PopupMenu.OnMenuI
|
|||
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
|
||||
if (tag != null && onNFCReaderCallback != null) {
|
||||
onNFCReaderCallback.onTagDiscovered(tag);
|
||||
if (BuildConfig.DEBUG)
|
||||
Toast.makeText(this, "onNFCReaderCallback 1", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -130,6 +133,8 @@ public class MainActivity extends AppCompatActivity implements PopupMenu.OnMenuI
|
|||
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
|
||||
if (tag != null && onNFCReaderCallback != null) {
|
||||
onNFCReaderCallback.onTagDiscovered(tag);
|
||||
if (BuildConfig.DEBUG)
|
||||
Toast.makeText(this, "onNFCReaderCallback 2", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -197,7 +202,7 @@ public class MainActivity extends AppCompatActivity implements PopupMenu.OnMenuI
|
|||
return true;
|
||||
|
||||
case R.id.cleanCards:
|
||||
if (onCardsClean != null) onCardsClean.doClean();
|
||||
onCardsClean.doClean();
|
||||
hideCleanButton();
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue