Skip to content

Release 2.0

Choose a tag to compare

@DaKlok DaKlok released this 01 Jul 21:25
· 61 commits to master since this release

Implement a wallpaper gallery management system, auto-cycling functionality, and a paginated UI for the home screen.

  • Wallpaper Management Engine:
    • Introduced WallpaperManager to manage multiple user wallpapers stored in a dedicated internal directory.
    • Implemented WallpaperSettings to handle auto-cycling configurations, including time-based intervals, "on-lock" triggers.
    • Added a migration bridge to automatically import existing legacy wallpapers into the new gallery system on first launch.
  • Gallery & Configuration UI:
    • Created WallpaperScreen providing a thumbnail-based gallery with support for adding, deleting, and activating wallpapers.
    • Integrated Material 3 components for auto-cycling settings, including sliders for time intervals and daily change hours.
    • Implemented a HorizontalPager in MainActivity to allow seamless swiping between the lock-screen preview and the wallpaper management gallery.
    • Added a dynamic page indicator and a one-time "swipe hint" to improve feature discoverability.
  • Backup & Restore Enhancements:
    • Updated SettingsBackupManager to bundle the entire wallpaper gallery directory into the backup ZIP.
    • Refactored preference restoration to clear existing state before importing, ensuring a clean replacement of settings.
    • Improved preference serialization to explicitly handle value types (Int, Long, Float), preventing data loss during GSON restoration.
  • Wallpaper Caching & Performance:
    • Introduced WallpaperCacheManager to pre-render the next wallpaper (image + verse text) as a PNG, reducing the wallpaper swap time during screen-off events
    • Refactored ScreenOffReceiver to perform asynchronous wallpaper updates, prioritizing the file-based cache with a fallback to full rendering.
    • Integrated pre-rendering triggers in DailyVerseWorker to ensure the cache is refreshed after every successful wallpaper update.
  • Wallpaper Rendering:
    • Updated WallpaperUtils to calculate screen dimensions using the minimum and maximum values of the display metrics for width and height, respectively.
    • This ensures that wallpapers are always generated in portrait mode even if the device is currently in landscape orientation, preventing the system from stretching or cropping the bitmap on the lock screen.
  • UI & Localization:
    • Added extensive localized strings for all new wallpaper management and cycling features across nine languages.
    • Updated the main preview to support parallax scaling and alpha transitions during vertical scrolling.