Use notify instead of Toast for NFC check

This commit is contained in:
Dominik Schürmann 2015-03-12 13:39:20 +01:00
parent 67a9f12790
commit 27027b8ee5

View File

@ -375,9 +375,9 @@ public class ViewKeyActivity extends BaseActivity implements
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @TargetApi(Build.VERSION_CODES.LOLLIPOP)
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