commit | e92ab3236abf72964434a94c3b4362aadaf48a9c | [log] [tgz] |
---|---|---|
author | Alon Albert <aalbert@google.com> | Mon Apr 15 15:10:58 2024 -0700 |
committer | Alon Albert <aalbert@google.com> | Mon Apr 15 22:52:11 2024 +0000 |
tree | cf2d05820c3b83ee597d502ac1d0ee217bc1159e | |
parent | 6a6496ec96ab278112d358c7cfefb4b4a602aeec [diff] |
Add is_read_only to DatabaseOpenedEvent On Android, when a database is opened as Read-Only, it is not necessarily actually read-only. It is just not guaranteed to be writable. If we do end up with an actual read-only database, we should be able to show the user that the db was opened as read-only. This change adds a `is_read_only` field to the DatabaseOpenedEvent, and it also changes logic that sends this event: Whenever a db is opened or closed, we check if the type (forced, rea-only or writeable) has changed since the last time we sent an event for this DB. Bug: NA Test: Added Change-Id: I436c1d2b18667063ed25d400ab75371069d03f1c
This project contains: