Skip to content

Commit c3bc65d

Browse files
author
J Liu
committed
Fixes onNewIntent
1 parent afeda6b commit c3bc65d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/example/deco3801project/MainActivity2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ private void resetWaterIntake() {
349349

350350
@Override
351351
protected void onNewIntent(Intent intent) {
352+
super.onNewIntent(intent);
352353
if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(intent.getAction())) {
353-
super.onNewIntent(intent);
354354
if (pref.getBoolean("Bluetooth", false)) {
355355
Parcelable tagMessages = intent.getParcelableArrayExtra(
356356
NfcAdapter.EXTRA_NDEF_MESSAGES)[0];

0 commit comments

Comments
 (0)