We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9c74d4 commit fba7f7dCopy full SHA for fba7f7d
library/src/main/kotlin/dev/jahir/kuper/extensions/Context.kt
@@ -50,13 +50,17 @@ val Context.userWallpaper: Drawable?
50
try {
51
nwm.peekFastDrawable() ?: nwm.fastDrawable
52
} catch (e: Exception) {
53
- nwm.peekDrawable() ?: nwm.builtInDrawable
+ try {
54
+ nwm.peekDrawable() ?: nwm.builtInDrawable
55
+ } catch (e: Exception) {
56
+ nwm.builtInDrawable
57
+ }
58
}
59
else {
60
61
nwm.peekDrawable() ?: nwm.builtInDrawable
62
- null
63
64
65
66
0 commit comments