mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
Use notify instead of Toast for NFC check
This commit is contained in:
parent
67a9f12790
commit
27027b8ee5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user