Relative Content

Tag Archive for kotlin

Trying to check if a string value exists in a setOf of enums

I have the following question. The following code snippet throws me the error shown below. allowedWebhookStates contains enums. What do I have to change so that I can check whether the setOf of allowedWebhookStates contains the web.event which is a string?

Unable to alter RoomDB without restarting the activity

So I have this code where I am trying to get it to remove or edit from a RoomDB, visually it removes or edits the recycler view but when I restart the activity it remains the same but this time I can actually remove or edit it. So I need to restart my activity for me to be able to modify my RoomDB