Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: durareApp/android
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.4.0
Choose a base ref
...
head repository: durareApp/android
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.1
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Nov 19, 2025

  1. Fix: Upgraded smooth theme transition with circular reveal animation â€Ķ

    â€Ķfor switching themes
    
    This commit introduces a new theme switching animation that provides a smooth, circular reveal transition between light and dark modes. The previous implementation, which caused a noticeable flicker, has been replaced with a more refined two-step animation process.
    
    When the theme is changed, a screenshot of the current screen is taken. The app then applies the new theme and, upon loading the new activity, plays a circular reveal animation on the new content, revealing it over the old screenshot. This creates a seamless and visually appealing transition for the user.
    
    Key changes:
    - **`app/build.gradle.kts`**:
        - The `versionCode` has been updated from `13` to `16`.
        - The `versionName` has been updated from `0.4.0` to `0.4.1`.
    
    - **`app/src/main/java/com/subhajitrajak/durare/utils/ThemeSwitcher.kt`**:
        - A new `ThemeSwitcher` object has been created to handle the animation logic.
        - The `switchThemeWithAnimation` function now captures a screenshot of the current view and applies the new theme setting.
        - The `animateActivity` function is called in the new activity to perform a circular reveal animation over a background overlay of the previous screen's screenshot.
        - The `getBitmapFromView` function now includes error handling and returns a nullable `Bitmap`.
    
    - **`app/src/main/java/com/subhajitrajak/durare/HomeActivity.kt`**:
        - `ThemeSwitcher.animateActivity(this)` is now called in `onCreate` to trigger the reveal animation when the activity starts.
    
    - **`app/src/main/java/com/subhajitrajak/durare/utils/ThemeManager.kt`**:
        - Removed the immediate `applyTheme(context)` call to allow the new `ThemeSwitcher` to manage the transition.
    subhajit-rajak committed Nov 19, 2025
    Configuration menu
    Copy the full SHA
    bd6ef18 View commit details
    Browse the repository at this point in the history
Loading