Updated on 2026-08-14
This commit is contained in:
parent
cecb958d13
commit
b5c0595723
8 changed files with 225 additions and 200 deletions
|
|
@ -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