3131import com .surcumference .fingerprint .R ;
3232import com .surcumference .fingerprint .bean .DigitPasswordKeyPadInfo ;
3333import com .surcumference .fingerprint .plugin .inf .IAppPlugin ;
34+ import com .surcumference .fingerprint .plugin .inf .IMockCurrentUser ;
3435import com .surcumference .fingerprint .plugin .inf .OnFingerprintVerificationOKListener ;
3536import com .surcumference .fingerprint .util .AESUtils ;
3637import com .surcumference .fingerprint .util .ActivityViewObserver ;
5960
6061import javax .crypto .Cipher ;
6162
62- public class WeChatBasePlugin implements IAppPlugin {
63+ public class WeChatBasePlugin implements IAppPlugin , IMockCurrentUser {
6364
6465 private ActivityViewObserver mActivityViewObserver ;
6566 private WeakHashMap <View , View .OnAttachStateChangeListener > mView2OnAttachStateChangeListenerMap = new WeakHashMap <>();
@@ -84,6 +85,7 @@ protected synchronized void initFingerPrintLock(Context context, boolean smallPa
8485 mFingerprintIdentify = new XFingerprintIdentify (context )
8586 // 仅大支付框可用, 小支付框冲突严重
8687 .withUseBiometricApi (!smallPayDialogFloating && Config .from (context ).isUseBiometricApi ())
88+ .withMockCurrentUserCallback (this )
8789 .startIdentify (new XFingerprintIdentify .IdentifyListener () {
8890 @ Override
8991 public void onSucceed (XFingerprintIdentify target , Cipher cipher ) {
@@ -204,6 +206,11 @@ public boolean getMockCurrentUser() {
204206 return this .mMockCurrentUser ;
205207 }
206208
209+ @ Override
210+ public void setMockCurrentUser (boolean mock ) {
211+ this .mMockCurrentUser = mock ;
212+ }
213+
207214 private void startFragmentObserver (Activity activity ) {
208215 stopFragmentObserver (activity );
209216 FragmentObserver fragmentObserver = new FragmentObserver (activity );
0 commit comments