Skip to content

Commit 87b340a

Browse files
committed
🐛
- NPE while cast.
1 parent c1742be commit 87b340a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/me/rosuh/easywatermark/ui/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ class MainActivity : AppCompatActivity() {
697697
viewModel.clearData()
698698
launchView.ivPhoto.reset()
699699
bgTransformAnimator?.cancel()
700-
(launchView.background as ColorDrawable).color.toColor(
700+
(launchView.background as? ColorDrawable?)?.color?.toColor(
701701
this.colorBackground
702702
) {
703703
val c = it.animatedValue as Int

0 commit comments

Comments
 (0)