Clear mHasResult if the result is dispatched

The bug is because we dispatch the result again in setListener.
We should reset mHasResult if the result is dispatched already.
This bug is actually not work-challenge specific, I can reproduce it
in the setting to change screen lock.

Bug: 27242673
Change-Id: I29d2769a16c53d7103dafe1811bc808d634a8d85
This commit is contained in:
Tony Mak
2016-03-18 18:24:13 +00:00
parent b56d3a6c33
commit b27d5b2007

View File

@@ -61,6 +61,7 @@ public class CredentialCheckResultTracker extends Fragment {
if (mListener != null) {
mListener.onCredentialChecked(mResultMatched, mResultData, mResultTimeoutMs,
mResultEffectiveUserId, true /* newResult */);
mHasResult = false;
}
}