Skip to content

Commit 2e36ec8

Browse files
committed
Fix gradient overlay not working with dual portraits properly
1 parent 5b6f890 commit 2e36ec8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ android {
3030
applicationId "nl.giejay.android.tv.immich"
3131
minSdkVersion 24
3232
targetSdkVersion 35
33-
versionCode 65
34-
versionName "2.0"
33+
versionCode 66
34+
versionName "2.0.1"
3535

3636
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3737
testOptions.unitTests.includeAndroidResources = true

app/src/main/java/nl/giejay/android/tv/immich/shared/util/AssetUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fun Asset.toSliderItem(): SliderItem {
4848
}
4949

5050
fun Asset.isPortraitImage(): Boolean {
51-
return (this.exifInfo?.orientation == 6 || (this.exifInfo?.exifImageWidth != null && this.exifInfo.exifImageHeight != null && this.exifInfo.exifImageWidth - 500 < this.exifInfo.exifImageHeight)) && this.type == SliderItemType.IMAGE.toString()
51+
return (this.exifInfo?.orientation == 6 || (this.exifInfo?.exifImageWidth != null && this.exifInfo.exifImageHeight != null && this.exifInfo.exifImageWidth - 100 < this.exifInfo.exifImageHeight)) && this.type == SliderItemType.IMAGE.toString()
5252
}
5353

5454
fun List<Asset>.toCards(): List<Card> {

0 commit comments

Comments
 (0)