Updated on 2026-08-14
This commit is contained in:
parent
984a294104
commit
ec39d1a437
4 changed files with 2 additions and 14 deletions
|
|
@ -6,10 +6,8 @@ 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;
|
||||
|
|
@ -27,8 +25,6 @@ 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,7 +20,6 @@ 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;
|
||||
|
|
@ -66,8 +65,6 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -133,8 +130,6 @@ 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue