From 787cfbc82a0e8e41534fc6d6815d615fc21f0766 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Sun, 22 Apr 2018 14:11:26 +0200 Subject: [PATCH] fix Kotlin compiler warning --- .../main/java/com/keylesspalace/tusky/EditProfileActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.kt b/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.kt index 929941cc4..19153a8f9 100644 --- a/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/EditProfileActivity.kt @@ -221,6 +221,7 @@ class EditProfileActivity : BaseActivity(), Injectable { EditProfileActivity.PickType.HEADER -> { startActivityForResult(intent, HEADER_PICK_RESULT) } + EditProfileActivity.PickType.NOTHING -> { /* do nothing */ } } } @@ -329,6 +330,7 @@ class EditProfileActivity : BaseActivity(), Injectable { headerPreview.visibility = View.INVISIBLE headerButton.setImageDrawable(null) } + EditProfileActivity.PickType.NOTHING -> { /* do nothing */ } } } @@ -410,6 +412,8 @@ class EditProfileActivity : BaseActivity(), Injectable { headerButton.setImageResource(R.drawable.ic_add_a_photo_32dp) headerChanged = true } + EditProfileActivity.PickType.NOTHING -> { /* do nothing */ } + } }