Pad/cmd/pad
Greg Pomerantz e96464ec79 Restore the browser page on relaunch, not the last edited file
A relaunch session always re-opened the last edited file, even when the
app was closed sitting on the browser page. The snapshot now records
which page the app was on (SessionState.InBrowser/BrowserPath); the cmd
layer lands back in the browser at the saved directory on relaunch
(falling back to the startup directory if it has vanished) instead of
calling BeginRestore. Browser-page snapshots clear File, which also
makes the editor->browser transition an urgent save, so the
back-in-browser state hits disk immediately. Legacy session files (no
InBrowser key) unmarshal to false and restore the editor exactly as
before.

Verified on emulator and phone: editor sessions still restore the file
(cursor/scroll/font), browser sessions land in the browser at the saved
dir; legacy files keep the old behavior. New e2e regression test
TestRestore_BrowserPageSession.
2026-09-03 12:11:44 -04:00
..
impl_android.go Fix SIGABRT on activity destroy: null view in registerFragment 2026-08-20 18:49:00 -04:00
impl_other.go Flush the session snapshot on activity onStop (Android) 2026-08-20 18:24:43 -04:00
jni_android.c Fix SIGABRT on activity destroy: null view in registerFragment 2026-08-20 18:49:00 -04:00
jni_android.h Fix selection-handle drags, menu anchoring, and left-edge back-gesture theft 2026-08-18 13:09:29 -04:00
main.go Restore the browser page on relaunch, not the last edited file 2026-09-03 12:11:44 -04:00
Permissions.java Refactor RealFileSystem to use WorkingDir, and ensure clean shutdown with FlushAll 2026-06-05 11:42:39 -04:00