For notes stored in a read-only directory, the view/edit toggle button should not be offered in the Android app as well.
Has this already been raised as an issue somewhere, or should I report it as a bug or a feature request on GitHub?
Although offering the option to toggle seems a bit odd, it's not completely useless, because the different modes may render the content a bit differently. The desktop app also allows you to switch between views for read only notes.
I'm pretty sure the older versions of the mobile app behaved the same, except the button was in a different place. So it's not really a bug, but it seems like a design choice which maybe could do with improvement.
In the desktop app, you can tell at a glance from the greyed-out text that you are in read-only mode.
The Android app lacks a feature that would allow you to recognise this immediately.