OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.device.nfc; | 5 package org.chromium.device.nfc; |
6 | 6 |
7 import org.chromium.device.nfc.mojom.NfcMessage; | 7 import org.chromium.device.nfc.mojom.NfcMessage; |
8 import org.chromium.device.nfc.mojom.NfcRecord; | 8 import org.chromium.device.nfc.mojom.NfcRecord; |
9 import org.chromium.device.nfc.mojom.NfcRecordType; | 9 import org.chromium.device.nfc.mojom.NfcRecordType; |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 if (record.mediaType == null || record.mediaType.isEmpty() | 37 if (record.mediaType == null || record.mediaType.isEmpty() |
38 || record.recordType == NfcRecordType.EMPTY) { | 38 || record.recordType == NfcRecordType.EMPTY) { |
39 return false; | 39 return false; |
40 } | 40 } |
41 | 41 |
42 return true; | 42 return true; |
43 } | 43 } |
44 } | 44 } |
OLD | NEW |