Commit Graph
2913 Commits
Author SHA1 Message Date
Andrew Gunnerson 852378e484 Simplify inset logic, fix landscape mode, fix cutout overlapping
The commit primarily fixes a few overlapping issues caused by the window
inset handling. Previously, there were two main issues:

* Because setTransparentNavigationBar() checked for portrait mode, the
  inset logic never executed in landscape mode. This caused the app to
  overlap the status bar and navigation bar.

* The inset logic did not have handling for displayCutout insets. In
  landscape mode, this would cause the app to overlap the notch or
  camera hole punch area on phones.

In addition to fixing those issues, this commit simplifies the inset
logic a bit:

* applyWindowInsets() now accepts an EnumSet of WindowInsetPosition to
  avoid needing to duplicate logic for the various position
  combinations.

* Insets are now applied to the main container in the layout instead of
  individual elements where possible. This eliminates the need for the
  previous manual IME height handling logic in BOTTOM_IME vs
  TOP_BOTTOM_IME (for avoiding the insets being applied twice).

* Since insets are now applied to the main layout container,
  applyWindowInsets() now takes systemBars, displayCutout, and ime all
  into consideration. This should avoid all possible overlapping.

* Add support for using padding instead of margins for insets. This is
  used for GroupActivity's navigation drawer, where Material design
  intends for the drawer background to be drawn behind system bars.

Signed-off-by: Andrew Gunnerson <[email protected]>
2025-10-04 17:24:24 -04:00
J-Jamet da8ef9340c fix: Loading ViewModel 2025-09-12 15:23:32 +02:00
J-Jamet 56cb5953dd fix: Deletable recycle bin #2163 2025-09-12 13:00:56 +02:00
J-Jamet 69e7cdbc47 fix: Search with space #175 2025-09-11 16:43:40 +02:00
J-Jamet 39d9a74a73 fix: Warnings 2025-09-11 16:36:35 +02:00
J-Jamet 28e4d929bb fix: Warnings 2025-09-11 14:51:35 +02:00
J-Jamet a46251be7b fix: Better biometric exception implementation 2025-09-09 13:37:50 +02:00
J-Jamet e8ec27dc38 fix: Upgrade to API 35 2025-09-09 11:45:30 +02:00
J-Jamet 5e4ee167fc Merge branch 'rmacklin-remember-last-read-only-state-of-each-database' into develop 2025-09-01 19:02:59 +02:00
J-Jamet c911b7c511 fix: Import DatabaseFile 2025-09-01 19:01:35 +02:00
J-Jamet daf717becd fix: Remove JELLY_BEAN_MR1 conditions and unused PRNGFixes 2025-09-01 18:15:00 +02:00
J-Jamet 48d4483484 Merge branch 'master' of github.com:Dev-ClayP/KeePassDX into Dev-ClayP-master 2025-09-01 17:34:46 +02:00
Richard Macklin e9d20a51a5 Remove global "Write-protected" setting
This addresses J-Jamet's feedback that keeping the global setting would
potentially lead to confusion, so it should be removed now that we are
remembering each database's read-only state.
2025-08-26 20:10:42 -07:00
Richard Macklin a28d77ba32 feat: Remember the last read-only state of each database
The app has supported a global setting for opening (all) databases in
read-only mode. But that's not particularly flexible for the use case
where you have one database that should be read-only and one that should
be read-write.

Previously, to handle this use case you could open one database in
read-only mode, but the next time you attempted to open the same
database, it would "forget" that, so you would have to toggle it to
read-only mode again manually. This commit changes that behavior so that
if you toggle a database to read-only mode, it'll be remembered the next
time you open the database. (You can still toggle it back to read-write
if you change your mind, and that, too, will be remembered the next time
you open the database.)
2025-08-26 20:08:22 -07:00
J-Jamet dae5f65c0d Revert "fix: revert checkUnlock"
This reverts commit 564b5f10ea.
2025-08-23 00:20:48 +02:00
J-Jamet 564b5f10ea fix: revert checkUnlock 2025-08-23 00:03:59 +02:00
J-Jamet bd15e36b52 fix: Multiple biometric prompt 2025-08-22 22:50:58 +02:00
J-Jamet 43faca3061 fix: Multiple call to check availability 2025-08-22 22:34:11 +02:00
J-Jamet 82af9bada2 fix: CipherDatabase listener and rename advanced unlock in device unlock 2025-08-22 22:05:51 +02:00
J-Jamet 1a4d963d53 fix: Background event 2025-08-18 20:57:38 +02:00
J-Jamet fba8443d0a fix: logs 2025-08-18 18:45:11 +02:00
J-Jamet 601874442c fix: Better database loading 2025-08-18 18:29:48 +02:00
J-Jamet fa34618d67 fix: Connect database 2025-08-18 16:55:39 +02:00
J-Jamet a60fc83379 fix: old device code 2025-08-18 16:28:45 +02:00
J-Jamet c2c9ebe4c7 fix: Orientatino change in old device 2025-08-18 16:08:14 +02:00
J-Jamet fdd86e2b9e fix: cryptoPrompt private variable 2025-08-18 13:16:26 +02:00
J-Jamet 34f0f45862 fix: Add app in background event 2025-08-18 13:12:32 +02:00
J-Jamet c0345d4dc4 Revert "fix: Smal fix"
This reverts commit 24e859c4ce.
2025-08-18 12:11:17 +02:00
J-Jamet 24e859c4ce fix: Smal fix 2025-08-18 12:09:31 +02:00
J-Jamet 1fff0c526c fix: Authentication error 2025-08-18 10:03:02 +02:00
J-Jamet 1ee1bb8d95 fix: Device credential operation 2025-08-18 09:55:46 +02:00
J-Jamet b8e996a5af fix: Orientation change 2025-08-17 22:45:00 +02:00
J-Jamet df999002af fix: DeviceUnlockManager init 2025-08-17 13:36:36 +02:00
J-Jamet 64f5a4152b fix: prompt null 2025-08-17 13:24:17 +02:00
J-Jamet 0af99d1830 fix: Orientation change 2025-08-17 13:16:21 +02:00
J-Jamet 733f337312 fix: Lock orientation change 2025-08-17 11:54:39 +02:00
J-Jamet 1f99b1f884 fix: Error Keystore #2114 2025-08-17 11:24:52 +02:00
J-Jamet c3b5598a09 fix: Auto open biometric prompt from database list #2113 Update to 4.1.6 2025-08-17 10:09:04 +02:00
J-Jamet 845d1a581b fix: warnings 2025-08-14 17:14:01 +02:00
J-Jamet 23bebf9597 fix: Auto prompt #2111 2025-08-14 17:02:40 +02:00
J-Jamet 7a9469e59d fix: code improvement #2105 2025-08-13 19:21:42 +02:00
J-Jamet c12eb3d643 fix: error code 28 #2105 2025-08-13 19:03:15 +02:00
J-Jamet da0f02e536 fix: better prompt variable management #2105 2025-08-13 18:27:51 +02:00
J-Jamet 04bcc6631c fix: open auto prompt too often #2105 2025-08-13 17:59:56 +02:00
J-Jamet 698e3b7fb1 fix: auto open prompt #2105 2025-08-13 11:49:54 +02:00
J-Jamet 6de02384c1 fix: close prompt #2105 2025-08-13 11:25:36 +02:00
J-Jamet df3bd7e0a1 fix: cipher call #2105 2025-08-13 11:03:50 +02:00
J-Jamet c8c232639f fix: better cipher and prompt workflow #2105 2025-08-12 19:49:31 +02:00
J-Jamet 192d6eedd0 fix: autoprompt thread #2105 2025-08-12 15:51:41 +02:00
J-Jamet 9cae3f0794 fix: initDecryptData #2105 2025-08-12 15:33:35 +02:00