Skip to content

Commit a7b6c2a

Browse files
author
procrastimax
committed
Trying to catch all exceptions in 'loadAllBitmaps'
1 parent 1f871fa commit a7b6c2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
applicationId "com.procrastimax.birthdaybuddy"
1010
minSdkVersion 21
1111
targetSdkVersion 28
12-
versionCode 15
12+
versionCode 17
1313
versionName "1.2"
1414
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1515
}

app/src/main/java/com/procrastimax/birthdaybuddy/handler/BitmapHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ object BitmapHandler {
123123
)
124124
}
125125
}
126-
}catch (e : IndexOutOfBoundsException){
126+
}catch (e : Exception){
127127
val toast = Toast.makeText(context,"Something went wrong when trying to load the images :(" , Toast.LENGTH_SHORT)
128128
toast.show()
129129
}

0 commit comments

Comments
 (0)