I’m have an issue implementing `ActionMode.Callbac...
# android
k
I’m have an issue implementing
ActionMode.Callback
“Type mismatch, Expected ActionMode.Callback, Found “” (nothing) I’ve used the same approach for other interfaces such as OnClickListeners… I don’t understand what I am missing.
Copy code
activity.startActionMode(object : ActionMode.Callback {
                    override fun onActionItemClicked(mode: ActionMode?, item: MenuItem?): Boolean {
                        throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
                    }})