svc nfc should support watches too am: 1876583bfb

am: eed0a7bf45

Change-Id: If7f2515750bb74d0c9f3baae9fe0a1fc3eeb36ef
This commit is contained in:
Tucker Sylvestro
2017-01-18 16:41:54 +00:00
committed by android-build-merger

View File

@@ -58,7 +58,8 @@ public class NfcCommand extends Svc.Command {
IPackageManager pm = IPackageManager.Stub.asInterface(
ServiceManager.getService("package"));
try {
if (pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0)) {
if (pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0) ||
pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, 0)) {
INfcAdapter nfc = INfcAdapter.Stub
.asInterface(ServiceManager.getService(Context.NFC_SERVICE));
try {