Skip to content

Commit

Permalink
Use first media, update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
michelesalvador committed Mar 2, 2024
1 parent abbecec commit 1154383
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ android {
minSdk 19
targetSdk 34
versionCode 26
versionName '1.0.1.2'
versionName '1.0.1.3'
vectorDrawables.useSupportLibrary = true
resourceConfigurations += ['ar', 'ckb', 'cs', 'da', 'de', 'en', 'eo', 'es', 'fa', 'fr', 'hr', 'hu', 'in', 'it', 'iw',
'kn', 'lt', 'mr', 'nb', 'nl', 'pl', 'pt', 'ru', 'sk', 'sl', 'sr', 'ti', 'tr', 'uk', 'zh']
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/app/familygem/util/FileUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ object FileUtil {
break
}
}
// Alternatively, returns a random one
// Alternatively, uses the first one
if (media == null && mediaList.list.isNotEmpty()) {
media = mediaList.list.random()
media = mediaList.list.first()
if (show) showImage(media, imageView, options, null, treeId)
}
imageView.visibility = if (media != null) View.VISIBLE else View.GONE
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21'
classpath 'com.android.tools.build:gradle:8.3.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22'
}
}
allprojects {
Expand Down

0 comments on commit 1154383

Please sign in to comment.