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 android.nfc.FormatException; | 7 import android.nfc.FormatException; |
8 import android.nfc.NdefMessage; | 8 import android.nfc.NdefMessage; |
9 import android.nfc.Tag; | 9 import android.nfc.Tag; |
10 import android.nfc.TagLostException; | 10 import android.nfc.TagLostException; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 */ | 148 */ |
149 public boolean isTagOutOfRange() { | 149 public boolean isTagOutOfRange() { |
150 try { | 150 try { |
151 connect(); | 151 connect(); |
152 } catch (IOException e) { | 152 } catch (IOException e) { |
153 return mWasConnected; | 153 return mWasConnected; |
154 } | 154 } |
155 return false; | 155 return false; |
156 } | 156 } |
157 } | 157 } |
OLD | NEW |