Skip to content

Commit f18a4d4

Browse files
committed
Bump version to 6.0.2(36)
Fixed fingerprint icon still displays after successful WeChat payment
1 parent b270eeb commit f18a4d4

13 files changed

+49
-39
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
### v6.0.1 (2025-03-27)
3+
4+
🐛 修复微信支付成功后指纹图标仍然显示
5+
26
### v6.0.1 (2025-03-24)
37

48
🚩 适配 微信 8.0.57(2820)

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.surcumference.fingerprintpay"
88
minSdk 14
99
targetSdk 34
10-
versionCode 35
11-
versionName "6.0.1"
10+
versionCode 36
11+
versionName "6.0.2"
1212
buildConfigField "String", "APP_PRODUCT_NAME", "\"FingerprintPay\""
1313
}
1414

app/src/main/java/com/surcumference/fingerprint/plugin/impl/wechat/WeChatBasePlugin.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ public void onViewFounded(ActivityViewObserver observer, View view) {
148148
ActivityViewObserver.IActivityViewListener l = this;
149149
ActivityViewObserverHolder.stop(observer);
150150
L.d("onViewFounded:", view, " rootView: ", view.getRootView());
151-
view.post(() -> onPayDialogShown(activity, (ViewGroup) view.getRootView()));
151+
ViewGroup rootView = (ViewGroup) view.getRootView();
152+
view.post(() -> onPayDialogShown(activity, rootView));
152153

153154
View.OnAttachStateChangeListener listener = mView2OnAttachStateChangeListenerMap.get(view);
154155
if (listener != null) {
@@ -165,7 +166,7 @@ public void onViewAttachedToWindow(View v) {
165166
public void onViewDetachedFromWindow(View v) {
166167
L.d("onViewDetachedFromWindow:", view);
167168
Context context = v.getContext();
168-
onPayDialogDismiss(context);
169+
onPayDialogDismiss(context, rootView);
169170
if (Config.from(context).isVolumeDownMonitorEnabled()) {
170171
ViewUtils.unregisterVolumeKeyDownEventListener(activity.getWindow());
171172
}
@@ -193,7 +194,7 @@ public void onActivityPaused(Activity activity) {
193194
|| activityClzName.contains(".UIPageFragmentActivity")) {
194195
ActivityViewObserverHolder.stop(ActivityViewObserverHolder.Key.WeChatPayView);
195196
ActivityViewObserverHolder.stop(ActivityViewObserverHolder.Key.WeChatPaymentMethodView);
196-
onPayDialogDismiss(activity);
197+
onPayDialogDismiss(activity, activity.getWindow().getDecorView());
197198
} else if (getVersionCode(activity) >= Constant.WeChat.WECHAT_VERSION_CODE_8_0_20 && activityClzName.contains("com.tencent.mm.ui.LauncherUI")) {
198199
stopFragmentObserver(activity);
199200
}
@@ -513,12 +514,17 @@ private boolean isSmallPayDialogFloating(ViewGroup passwordLayout) {
513514
return location[0] > 0 || floatRootView.getChildCount() > 1;
514515
}
515516

516-
protected void onPayDialogDismiss(Context context) {
517+
protected void onPayDialogDismiss(Context context, View rootView) {
517518
L.d("PayDialog dismiss");
518-
if (Config.from(context).isOn()) {
519-
cancelFingerprintIdentify();
520-
mMockCurrentUser = false;
519+
if (!Config.from(context).isOn()) {
520+
return;
521+
}
522+
cancelFingerprintIdentify();
523+
View fingerPrintLayoutLast = rootView.findViewWithTag("fingerPrintLayout");
524+
if (fingerPrintLayoutLast != null) {
525+
ViewUtils.removeFromSuperView(fingerPrintLayoutLast);
521526
}
527+
mMockCurrentUser = false;
522528
}
523529

524530
private void cancelFingerprintIdentify() {

release/update_riru_alipay.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/riru-module-xfingerprint-pay-alipay-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/riru-module-xfingerprint-pay-alipay-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

release/update_riru_qq.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/riru-module-xfingerprint-pay-qq-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/riru-module-xfingerprint-pay-qq-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

release/update_riru_taobao.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/riru-module-xfingerprint-pay-taobao-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/riru-module-xfingerprint-pay-taobao-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

release/update_riru_unionpay.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/riru-module-xfingerprint-pay-unionpay-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/riru-module-xfingerprint-pay-unionpay-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

release/update_riru_wechat.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/riru-module-xfingerprint-pay-wechat-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/riru-module-xfingerprint-pay-wechat-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

release/update_zygisk_alipay.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/zygisk-module-xfingerprint-pay-alipay-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/zygisk-module-xfingerprint-pay-alipay-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

release/update_zygisk_qq.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "6.0.1",
3-
"versionCode": "35",
4-
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.1/zygisk-module-xfingerprint-pay-qq-v6.0.1-release.zip",
2+
"version": "6.0.2",
3+
"versionCode": "36",
4+
"zipUrl": "https://file.xdow.net/d/download/fingerprintpay/6.0.2/zygisk-module-xfingerprint-pay-qq-v6.0.2-release.zip",
55
"changelog": "https://gitee.com/eritpchy/FingerprintPay/raw/main/CHANGELOG.md"
66
}

0 commit comments

Comments
 (0)