diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2d1a65025..eb67e2551 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -108,6 +108,7 @@ dependencies { implementation(libs.androidx.swiperefreshlayout) implementation(libs.awebp) implementation(libs.apng) + implementation(libs.avif.integration) implementation(libs.okio) implementation(libs.picasso) { exclude(group = "com.squareup.okhttp3", module = "okhttp") diff --git a/app/src/main/kotlin/org/fossify/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/org/fossify/gallery/activities/ViewPagerActivity.kt index 550f79590..7810f0c73 100644 --- a/app/src/main/kotlin/org/fossify/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/org/fossify/gallery/activities/ViewPagerActivity.kt @@ -406,7 +406,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } window.decorView.setOnSystemUiVisibilityChangeListener { visibility -> - mIsFullScreen = if (isNougatPlus() && isInMultiWindowMode) { + mIsFullScreen = if (isUpsideDownCakePlus()) { + visibility and View.SYSTEM_UI_FLAG_LOW_PROFILE != 0 + } else if (isNougatPlus() && isInMultiWindowMode) { visibility and View.SYSTEM_UI_FLAG_LOW_PROFILE != 0 } else if (visibility and View.SYSTEM_UI_FLAG_LOW_PROFILE == 0) { false diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2f38e2eba..cbf7d1568 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -68,6 +68,7 @@ awebp = { module = "com.github.penfeizhou.android.animation:awebp", version.ref glide-compiler = { module = "com.github.bumptech.glide:ksp", version.ref = "glideCompiler" } zjupure-webpdecoder = { module = "com.github.zjupure:webpdecoder", version.ref = "zjupureWebpdecoder" } picasso = { module = "com.squareup.picasso:picasso", version.ref = "picasso" } +avif-integration = { group = "com.github.bumptech.glide", name = "avif-integration", version.ref = "glideCompiler" } [bundles] room = [ "androidx-room-ktx",