Skip to content

Commit

Permalink
SystemActionUtils: don't show NFC actions on devices without NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed May 19, 2019
1 parent f50547e commit b00de95
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,24 +464,26 @@ object SystemActionUtils {
),

//NFC

SystemActionDef(
id = ENABLE_NFC,
category = CATEGORY_NFC,
iconRes = R.drawable.ic_outline_nfc_24px,
permission = Constants.PERMISSION_ROOT,
feature = PackageManager.FEATURE_NFC,
descriptionRes = R.string.action_nfc_enable
),
SystemActionDef(
id = DISABLE_NFC,
category = CATEGORY_NFC,
feature = PackageManager.FEATURE_NFC,
iconRes = R.drawable.ic_nfc_off,
permission = Constants.PERMISSION_ROOT,
descriptionRes = R.string.action_nfc_disable
),
SystemActionDef(
id = TOGGLE_NFC,
category = CATEGORY_NFC,
feature = PackageManager.FEATURE_NFC,
iconRes = R.drawable.ic_outline_nfc_24px,
permission = Constants.PERMISSION_ROOT,
descriptionRes = R.string.action_nfc_toggle
Expand Down

0 comments on commit b00de95

Please sign in to comment.