Merge "Remove NfcFragment from activity when no longer sharing." into ics-mr0

This commit is contained in:
Martijn Coenen
2011-10-14 12:57:34 -07:00
committed by Android (Google) Code Review

View File

@@ -162,6 +162,7 @@ public final class NfcActivityManager extends INdefPushCallback.Stub {
synchronized void maybeRemoveState(Activity activity, NfcActivityState state) {
if (state.ndefMessage == null && state.ndefMessageCallback == null &&
state.onNdefPushCompleteCallback == null) {
NfcFragment.remove(activity);
mNfcState.remove(activity);
}
}