From 0e7c7d68874ff035afaa4f3a717f6f15e049ab98 Mon Sep 17 00:00:00 2001 From: linshenjianlu Date: Sun, 3 May 2026 13:38:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(panels):=20=E4=BF=AE=E5=A4=8D=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E9=80=89=E6=8B=A9=E6=90=9C=E7=B4=A2=E6=A1=86=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=B3=95=E6=97=A0=E6=B3=95=E5=BC=B9=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/th_14_panels.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/code/th_14_panels.js b/code/th_14_panels.js index e5e015c..cb4960c 100644 --- a/code/th_14_panels.js +++ b/code/th_14_panels.js @@ -3859,9 +3859,11 @@ FloatBallAppWM.prototype.showShortXIconPickerPopup = function(opts) { android.view.WindowManager.LayoutParams.MATCH_PARENT, android.view.WindowManager.LayoutParams.MATCH_PARENT, android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY, - android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | android.view.WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, + android.view.WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, android.graphics.PixelFormat.TRANSLUCENT ); + overlayLp.softInputMode = android.view.WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE + | android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN; try { wm.addView(rootOverlay, overlayLp); } catch(eAdd) { safeLog(self.L, 'e', "icon picker addView fail: " + String(eAdd)); @@ -3902,8 +3904,20 @@ FloatBallAppWM.prototype.showShortXIconPickerPopup = function(opts) { try { searchEt.setHintTextColor(subTextColor); } catch(e) { safeLog(null, 'e', "catch " + String(e)); } searchEt.setHint("\u641c\u7d22\u56fe\u6807\u540d\uff0c\u5982 share / home"); searchEt.setSingleLine(true); + searchEt.setFocusable(true); + searchEt.setFocusableInTouchMode(true); searchEt.setPadding(self.dp(10), self.dp(8), self.dp(10), self.dp(8)); searchEt.setBackground(self.ui.createStrokeDrawable(isDark ? self.ui.colors.inputBgDark : self.ui.colors.inputBgLight, isDark ? self.ui.colors.dividerDark : self.ui.colors.dividerLight, self.dp(1), self.dp(10))); + searchEt.setOnClickListener(new android.view.View.OnClickListener({ + onClick: function(v) { + self.touchActivity(); + try { + v.requestFocus(); + var imm = context.getSystemService(android.content.Context.INPUT_METHOD_SERVICE); + if (imm) imm.showSoftInput(v, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT); + } catch(eIme) { safeLog(null, 'e', "catch " + String(eIme)); } + } + })); card.addView(searchEt); // 状态栏