We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1742be commit 87b340aCopy full SHA for 87b340a
1 file changed
app/src/main/java/me/rosuh/easywatermark/ui/MainActivity.kt
@@ -697,7 +697,7 @@ class MainActivity : AppCompatActivity() {
697
viewModel.clearData()
698
launchView.ivPhoto.reset()
699
bgTransformAnimator?.cancel()
700
- (launchView.background as ColorDrawable).color.toColor(
+ (launchView.background as? ColorDrawable?)?.color?.toColor(
701
this.colorBackground
702
) {
703
val c = it.animatedValue as Int
0 commit comments