Skip to content

Commit c27a831

Browse files
修复遮罩不能消失
1 parent 3b71cc0 commit c27a831

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,16 @@ public void onActivityResumed(Activity activity) {
184184
}
185185
keyboardKey.post(() -> onPayDialogShownByKeyboard(activity, decorView, keyboardKey));
186186
} else if (!keyboardVisible && wasVisible[0]) {
187+
// Remove both cover layouts
187188
removeFingerprintCover(decorView);
189+
View kbCover = decorView.findViewWithTag("keyboardCoverLayout");
190+
if (kbCover != null) {
191+
ViewUtils.removeFromSuperView(kbCover);
192+
}
188193
restoreKeyboardContainerHeight(mKeyboardContainer);
189194
cancelFingerprintIdentify();
195+
// Restore child view states before clearing
196+
restoreChildViewStates(mKeyboardPasswordLayout, true, mSavedAlphaMap, mSavedClickableMap);
190197
mSavedAlphaMap.clear();
191198
mSavedClickableMap.clear();
192199
if (Config.from(listenerContext).isVolumeDownMonitorEnabled()) {

0 commit comments

Comments
 (0)