Commit Graph
821 Commits
Author SHA1 Message Date
Anthonyy232andClaude Sonnet 4.6 4e14adfc01 fix: recycle bitmaps on exception in wallpaper processing pipeline
ChangeWallpaperUseCase and ReapplyEffectsUseCase both leaked the
processedBitmap when processBitmap() or adaptiveBrightnessAdjustment()
threw an exception — the outer catch returned Result.Error without
recycling the allocated bitmap. Added an inner try-catch-rethrow that
recycles whichever bitmap is live at the point of failure before
re-throwing so the outer handler can record the skip.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 14:01:17 -07:00
Anthonyy232andClaude Sonnet 4.6 8e4b0771c8 perf: eliminate O(n²) queue merges, N+1 refresh queries, and dead schema columns
- QueueBuilder: convert List.contains to HashSet lookups in mergeWithExistingQueue
  and mergeWithExistingQueueDeterministic (O(n²) → O(n))
- AlbumRefreshWorker: load existing folder URIs once per folder with
  getExistingWallpaperUris() instead of one DB query per scanned wallpaper (N+1 → 1)
- WallpaperEntity: remove unused cropOffsetX/Y/Scale columns (always null, never read)
- DATABASE_VERSION bumped to 4; fallbackToDestructiveMigration handles upgrade

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 13:49:49 -07:00
Anthonyy232andClaude Sonnet 4.6 4565893787 refactor: rename shadowed local variable in addWallpapers
Local `val wallpapers` shadowed the `StateFlow<List<Wallpaper>> wallpapers`
class property, making it hard to tell which was being referenced.
Renamed to `newWallpapers` for clarity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 11:38:28 -07:00
Anthonyy232andClaude Sonnet 4.6 4ff25cad78 fix: skip-not-delete on invalid URI in live wallpaper; rename enableChangeOnScreenOn to enableChangeOnScreenOff
- PaperizeLiveWallpaperService: stop permanently deleting wallpapers when
  URI is transiently inaccessible; now skips the cycle like ChangeWallpaperUseCase does.
  AlbumRefreshWorker handles authoritative URI pruning on its daily run.
- WallpaperEffects/PreferencesManager/WallpaperScreen: rename enableChangeOnScreenOn
  → enableChangeOnScreenOff to match actual trigger (ACTION_SCREEN_OFF).
  DataStore key string is unchanged so existing user prefs are preserved.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 11:33:55 -07:00
Anthonyy232andClaude Sonnet 4.6 6d8a9a9302 fix: remove dead deleteFirstQueueItem from WallpaperQueueDao
This position-based delete was superseded by deleteQueueItem (which
deletes by wallpaperId) and has zero call sites.  Removing it
eliminates confusion about which dequeue strategy is active.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 11:25:38 -07:00
Anthonyy232andClaude Sonnet 4.6 8d945a63a4 fix: validate homeAlbumId==lockAlbumId in Worker BOTH mode
WallpaperChangeService already guards against the case where home and
lock albums diverge in BOTH mode.  WallpaperChangeWorker was using
homeAlbumId unconditionally, silently applying the wrong album to the
lock screen during transient state transitions.  Add the same guard
and fall back to independent per-screen changes when albums differ.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 11:25:18 -07:00
Anthonyy232andClaude Sonnet 4.6 c72cdc39a8 fix: use integer division (floor) in calculateInSampleSize
fastRoundToInt() can round the inSampleSize ratio UP, causing the
decoded bitmap to be smaller than the target screen dimensions and
requiring upscaling.  Integer division always floors, guaranteeing
the decoded bitmap is at least as large as needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 11:24:09 -07:00
Anthonyy232andClaude Sonnet 4.6 c93e2f71f1 fix: share WallpaperChangeLock singleton between service and worker
WallpaperChangeService and WallpaperChangeWorker each had their own
private companion-object Mutex, so simultaneous runs (manual change +
scheduled worker) were not mutually excluded.  Extract a @Singleton
WallpaperChangeLock and inject it into both so the same Mutex is used
across all wallpaper-change entry points.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 11:23:41 -07:00
Anthonyy232 bc26d3c75f fix: more bug fixes 2026-03-25 22:19:21 -07:00
renovate[bot] eadd1952fe fix(deps): update dependency androidx.compose.animation:animation to v1.10.6 (#517)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-26 01:56:04 +00:00
renovate[bot] fd7e69f43a fix(deps): update dependency com.lazygeniouz:dfc to v1.5 (#514)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-25 05:05:47 +00:00
Anthonyy232 26a13bdeb2 Merge branch 'master' of https://github.com/Anthonyy232/Paperize 2026-03-24 21:06:43 -07:00
Anthonyy232 89dc845f1b fix: bug hunt 2026-03-24 21:05:37 -07:00
renovate[bot] d0cda6cc36 fix(deps): update dependency androidx.core:core-ktx to v1.18.0 (#513)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-21 13:06:30 +00:00
renovate[bot] bedfbe7afd fix(deps): update dependency androidx.datastore:datastore-preferences to v1.2.1 (#511)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-21 08:47:20 +00:00
renovate[bot] 6f2cb0b995 fix(deps): update dependency androidx.datastore:datastore to v1.2.1 (#510)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-21 05:27:31 +00:00
renovate[bot] a6aaf55c3c fix(deps): update dependency androidx.activity:activity-compose to v1.13.0 (#512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-21 00:39:52 +00:00
renovate[bot] f2aa714b17 fix(deps): update dependency androidx.compose.ui:ui-tooling-preview to v1.10.5 (#509)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 20:52:04 +00:00
renovate[bot] 2464907a9c fix(deps): update dependency androidx.compose.ui:ui-tooling to v1.10.5 (#507)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 18:13:00 +00:00
renovate[bot] 304a384cd0 fix(deps): update dependency androidx.compose.ui:ui to v1.10.5 (#503)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 13:43:03 +00:00
renovate[bot] 5dfb1c6a6c fix(deps): update dependency androidx.compose.ui:ui-test-junit4 to v1.10.5 (#505)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 08:57:11 +00:00
renovate[bot] 9e84837a68 fix(deps): update dependency androidx.compose.ui:ui-graphics to v1.10.5 (#504)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 05:25:26 +00:00
renovate[bot] 600db80998 chore(deps): update kotlin monorepo to v2.3.20 (#508)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-20 01:09:52 +00:00
renovate[bot] e6a0a607d2 fix(deps): update dependency androidx.compose.ui:ui-test-manifest to v1.10.5 (#506)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-19 21:40:30 +00:00
renovate[bot] 0cff2f3a0a chore(deps): update gradle to v9.4.1 (#499)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-19 17:14:58 +00:00
renovate[bot] 2e9768c3b5 fix(deps): update dependency androidx.compose.material:material to v1.10.5 (#502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 05:23:09 +00:00
renovate[bot] 1df9368330 fix(deps): update dependency androidx.compose.foundation:foundation to v1.10.5 (#501)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-15 01:21:59 +00:00
renovate[bot] 7014fc06fe fix(deps): update dependency androidx.compose.animation:animation to v1.10.5 (#500)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-12 01:37:32 +00:00
renovate[bot] 464ea59a4c fix(deps): update dependency androidx.compose.ui:ui-tooling-preview to v1.10.4 (#493)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 20:50:13 +00:00
renovate[bot] dba8d9199d fix(deps): update dependency net.engawapg.lib:zoomable to v2.11.1 (#483)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 18:08:20 +00:00
renovate[bot] 9358348549 fix(deps): update dependency androidx.compose.ui:ui-tooling to v1.10.4 (#492)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 14:08:00 +00:00
renovate[bot] 1764f092ae fix(deps): update dependency androidx.compose.ui:ui-test-junit4 to v1.10.4 (#490)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 09:00:58 +00:00
renovate[bot] 8c25786a1c fix(deps): update dependency androidx.compose.ui:ui to v1.10.4 (#494)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 04:35:16 +00:00
renovate[bot] f358478355 fix(deps): update dependency androidx.compose.foundation:foundation to v1.10.4 (#486)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-27 02:02:06 +00:00
renovate[bot] e6ec42c015 fix(deps): update dependency androidx.compose.ui:ui-test-manifest to v1.10.4 (#491)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 21:14:10 +00:00
renovate[bot] 9e7aabe7a7 fix(deps): update dependency androidx.compose.ui:ui-graphics to v1.10.4 (#489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 17:43:17 +00:00
renovate[bot] 6396857b66 fix(deps): update dependency androidx.compose.material3:material3 to v1.5.0-alpha15 (#488)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 13:43:00 +00:00
renovate[bot] 51e498e8e7 fix(deps): update dependency androidx.compose.animation:animation to v1.10.4 (#485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 08:36:26 +00:00
renovate[bot] 85a39183f0 fix(deps): update dependency androidx.compose.material:material to v1.10.4 (#487)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-26 05:01:12 +00:00
renovate[bot] 09ce9e83b4 fix(deps): update dependency androidx.compose.ui:ui-tooling-preview to v1.10.3 (#480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-25 04:43:50 +00:00
renovate[bot] 63b0e15a9f fix(deps): update coil to v3.4.0 (#484)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-25 01:04:30 +00:00
renovate[bot] 4013e5e2ac chore(deps): update dependency com.google.devtools.ksp to v2.3.6 (#481)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-18 02:04:34 +00:00
renovate[bot] 69988fa0cc fix(deps): update dependency com.lazygeniouz:dfc to v1.3 (#469)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-13 18:34:18 +00:00
renovate[bot] fcf92878a3 fix(deps): update dependency androidx.compose.ui:ui-tooling to v1.10.3 (#479)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-13 14:15:21 +00:00
renovate[bot] 9fa1536c78 fix(deps): update dependency androidx.compose.ui:ui-test-manifest to v1.10.3 (#478)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-13 09:34:50 +00:00
renovate[bot] 8a4f6b429d fix(deps): update dependency androidx.compose.material3:material3 to v1.5.0-alpha14 (#474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-13 05:39:07 +00:00
renovate[bot] 53c5e87dca fix(deps): update dependency androidx.compose.ui:ui-test-junit4 to v1.10.3 (#477)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-13 02:50:22 +00:00
renovate[bot] 9737dd70b6 fix(deps): update dependency androidx.compose.ui:ui to v1.10.3 (#475)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-12 20:50:51 +00:00
renovate[bot] 57794f6588 fix(deps): update dependency androidx.compose.ui:ui-graphics to v1.10.3 (#476)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-12 19:07:34 +00:00
renovate[bot] dd79170859 fix(deps): update dependency androidx.activity:activity-compose to v1.12.4 (#470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-12 14:51:25 +00:00