fix: restore color picker and top bar clicks

This commit is contained in:
7015725
2026-05-22 03:15:34 +08:00
parent 7af30639d1
commit 451cfb6502
4 changed files with 9 additions and 7 deletions

View File

@@ -4921,7 +4921,7 @@ FloatBallAppWM.prototype.showPopupOverlay = function(opts) {
} catch(eBackReg) { safeLog(self.L, 'w', "popup back callback register fail: " + String(eBackReg)); }
}
root.setOnKeyListener(new android.view.View.OnKeyListener({
root.setOnKeyListener(new JavaAdapter(android.view.View.OnKeyListener, {
onKey: function(v, keyCode, event) {
try {
if (!event) return false;

View File

@@ -1077,10 +1077,12 @@ FloatBallAppWM.prototype.buildToolAppShell = function(contentView, title, canBac
var leftStrip = this.createToolAppEdgeBackStrip(0);
var leftLp = new android.widget.FrameLayout.LayoutParams(stripW, -1);
leftLp.gravity = android.view.Gravity.START | android.view.Gravity.TOP;
leftLp.topMargin = topBarHeight + this.dp(8);
root.addView(leftStrip, leftLp);
var rightStrip = this.createToolAppEdgeBackStrip(1);
var rightLp = new android.widget.FrameLayout.LayoutParams(stripW, -1);
rightLp.gravity = android.view.Gravity.END | android.view.Gravity.TOP;
rightLp.topMargin = topBarHeight + this.dp(8);
root.addView(rightStrip, rightLp);
this.state.toolAppInnerBackLeftStrip = leftStrip;
this.state.toolAppInnerBackRightStrip = rightStrip;