mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 09:12:16 -05:00
hide invoke nfc button in android < 5
This commit is contained in:
parent
e2988c2a68
commit
b3ebb64666
@ -140,12 +140,17 @@ public class ViewKeyAdvShareFragment extends LoaderFragment implements
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
mKeyNfcButton.setOnClickListener(new View.OnClickListener() {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
@Override
|
mKeyNfcButton.setVisibility(View.VISIBLE);
|
||||||
public void onClick(View v) {
|
mKeyNfcButton.setOnClickListener(new View.OnClickListener() {
|
||||||
mNfcHelper.invokeNfcBeam();
|
@Override
|
||||||
}
|
public void onClick(View v) {
|
||||||
});
|
mNfcHelper.invokeNfcBeam();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
mKeyNfcButton.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
mKeySafeSlingerButton.setOnClickListener(new View.OnClickListener() {
|
mKeySafeSlingerButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user