Use notify instead of Toast for NFC check
This commit is contained in:
@@ -377,7 +377,7 @@ public class ViewKeyActivity extends BaseActivity implements
|
|||||||
private void invokeNfcBeam() {
|
private void invokeNfcBeam() {
|
||||||
// Check if device supports NFC
|
// Check if device supports NFC
|
||||||
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) {
|
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) {
|
||||||
Toast.makeText(this, R.string.no_nfc_support, Toast.LENGTH_SHORT).show();
|
Notify.createNotify(this, R.string.no_nfc_support, Notify.LENGTH_LONG, Notify.Style.ERROR).show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Check for available NFC Adapter
|
// Check for available NFC Adapter
|
||||||
|
|||||||
Reference in New Issue
Block a user