Merge "Make sure service handles are live before passing to other objects." into gingerbread
This commit is contained in:
@ -317,6 +317,7 @@ public final class NfcAdapter {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public INfcAdapter getService() {
|
public INfcAdapter getService() {
|
||||||
|
isEnabled(); // NOP call to recover sService if it is stale
|
||||||
return sService;
|
return sService;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,6 +326,7 @@ public final class NfcAdapter {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public INfcTag getTagService() {
|
public INfcTag getTagService() {
|
||||||
|
isEnabled(); // NOP call to recover sTagService if it is stale
|
||||||
return sTagService;
|
return sTagService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user