feat: save/share in the picture viewer, and a tap hides its chrome

- the viewer's top bar gains Save to Photos and Share on Android: saving
  writes through MediaStore into Pictures/Chamber Go (no permission on
  Android 10+, a runtime request on older versions), sharing hands a cache
  file to the system chooser through a FileProvider; both are a small
  native channel, not another plugin
- dsh-Go keeps its title bar always visible; here a single tap hides the
  title, keys and page indicator and the next tap brings them back, so they
  do not cover the picture. Double-tap still zooms, swiping still pages at
  1x, dragging pans while zoomed
- version 0.6.6+606; the viewer test now covers the platform calls, chrome
  toggle, zoom, pan and paging
This commit is contained in:
blumia committed 2026-12-01 11:53:54 +08:00
1 parent c2dabbe187
commit fedc4dd79c
10 files changed
+471 -45

No files matched your search

+8
View File
@@ -623,4 +623,12 @@ const Map<String, String> chineseStrings = {
'No matching projects': '没有匹配的项目',
'Browse archived sessions and restore them': '浏览已归档的会话并恢复',
'Session restored': '会话已恢复',
// image viewer
'Share': '分享',
'Share failed': '分享失败',
'Save to Photos': '保存到相册',
'Saved to Photos': '已保存到相册',
"Couldn't save the picture": '无法保存图片',
'Storage permission is required to save the picture': '保存图片需要存储权限',
};