🐛 Data sync may cause data loss on Android 14 https://github.com/siyuan-note/siyuan/issues/10205

This commit is contained in:
Daniel 2024-01-21 21:18:33 +08:00
parent 9197f69be0
commit dfe8f1317c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 14 additions and 9 deletions

View file

@ -23,6 +23,7 @@ import (
"strings"
"time"
"github.com/siyuan-note/filelock"
"github.com/siyuan-note/siyuan/kernel/cache"
"github.com/siyuan-note/siyuan/kernel/job"
"github.com/siyuan-note/siyuan/kernel/model"
@ -79,6 +80,10 @@ func IsHttpServing() bool {
return util.HttpServing
}
func SetHttpServerPort(port int) {
filelock.AndroidServerPort = port
}
func SetTimezone(container, appDir, timezoneID string) {
if "ios" == container {
os.Setenv("ZONEINFO", filepath.Join(appDir, "app", "zoneinfo.zip"))