am b73203ab: Merge "Make sure service handles are live before passing to other objects." into gingerbread

* commit 'b73203ab7e308b747819de2b2400afe971ef3bff':
  Make sure service handles are live before passing to other objects.
This commit is contained in:
Nick Pelly
2011-01-14 18:38:46 -08:00
committed by Android Git Automerger

View File

@@ -317,6 +317,7 @@ public final class NfcAdapter {
* @hide
*/
public INfcAdapter getService() {
isEnabled(); // NOP call to recover sService if it is stale
return sService;
}
@@ -325,6 +326,7 @@ public final class NfcAdapter {
* @hide
*/
public INfcTag getTagService() {
isEnabled(); // NOP call to recover sTagService if it is stale
return sTagService;
}