fix: adapt phone share QR to window size

This commit is contained in:
zhy200308
2026-08-12 16:12:26 +08:00
parent d3e840ff0a
commit 04a2d7fb10
9 changed files with 89 additions and 11 deletions
+8 -2
View File
@@ -1,4 +1,4 @@
# Android → Android 真机验收(v0.5.0-dev1)
# Android → Android 真机验收(v0.5.0-dev2)
## 构建约束
@@ -11,7 +11,7 @@ cd android
## 首轮验收
1. 两台 Android 安装同一个 `v0.5.0-dev1` APK。
1. 两台 Android 安装同一个 `v0.5.0-dev2` APK。
2. 发送手机进入“手机 → 手机”,选择至少两个文件并调整一次顺序。
3. 点击“创建发送二维码”,允许附近 Wi-Fi/位置权限。
4. 接收手机进入“扫码直传”,扫描发送手机二维码并确认系统连接提示。
@@ -27,6 +27,12 @@ cd android
- 手动停止发送端热点:接收端应报连接中断,而不是无限等待。
- 传输中返回发送端首页:服务和临时热点应立即关闭。
## 二维码布局组合
- 普通手机:二维码、状态、网络信息和停止按钮应在首屏完整显示。
- 10–14 英寸平板:二维码按窗口宽高取较小限制,不应拉伸到全宽后挤出下方按钮。
- 分屏/小窗:重新进入发送二维码页后,应按当前应用窗口而非物理屏幕分辨率计算尺寸。
## 当前边界
- 仅文件,不包含文件夹。
+1 -1
View File
@@ -99,7 +99,7 @@ The sender returns `206 Partial Content`, the matching `Content-Range`, and the
For both direct-transfer directions, the Windows listener may accept connections non-blockingly for shutdown responsiveness, but each accepted file socket is switched to blocking I/O with explicit timeouts before reading or writing request bodies. This prevents `WSAEWOULDBLOCK (10035)` from turning an in-progress parallel transfer into an HTTP 500 failure.
## 6. Android → Android (`QFTPHONE2`, v0.5.0-dev1)
## 6. Android → Android (`QFTPHONE2`, v0.5.0-dev2)
The sender starts an authenticated local HTTP service and encodes only session,
port, sender identity and optional LocalOnlyHotspot credentials in the QR. The