Obsidian fails to reliably switch between tablet and phone modes on foldable phones

Steps to reproduce

  1. Install Obsidian on an Honor Magic V5 (Android 16) via official APK.
  2. Launch Obsidian and ensure it is fully loaded.
  3. Unfold the device (switching from phone form factor to tablet form factor, increasing smallest width).
  4. Observe the Obsidian layout mode.
  5. Fold the device back to phone form factor (decreasing smallest width).
  6. Observe the Obsidian layout mode again.

Did you follow the troubleshooting guide? [Y/N]

Please, follow the Troubleshooting Guide before answering Yes.
N

Expected result

  • When the device is unfolded, Obsidian should automatically detect the increased screen width and switch to tablet mode.
  • When the device is folded, Obsidian should automatically detect the decreased screen width and switch back to phone mode.

Actual result

  • After unfolding the device, Obsidian sometimes remains stuck in phone mode and does not switch to tablet mode.
  • After folding the device, Obsidian sometimes remains stuck in tablet mode and does not switch back to phone mode.
  • The layout does not auto-adapt to the physical form factor change.
  • The only temporary workaround is to force-stop and restart the Obsidian app, which is inconvenient.

Environment

Device: Honor Magic V5 (HONOR MBH-AN10)
OS: Android 16
Installation method: Official APK

SYSTEM INFO:
Obsidian version: 1.12.4 (299)
API version: 1.12.4
Operating system: Android 16 (HONOR MBH-AN10)
Webview version: 138.0.7204.179
Login status: logged in
Language: zh
Catalyst license: insider
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 9
Plugins enabled: 4
1: Clear Unused Images v1.1.1
2: Copilot v3.2.7
3: Maps v0.1.6
4: Editing Toolbar v4.0.7

RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Additional information

  • The issue appears to be related to how Obsidian handles smallestWidth configuration changes (smallestScreenWidthDp) on foldable devices without fully restarting the activity.
  • The issue is intermittent — it does not happen on every single fold/unfold action, but occurs frequently enough to disrupt daily use.
  • Restarting the app always fixes the layout for that session, suggesting the app is not correctly responding to the on-configuration-changed event for foldable transitions.