Skip to content

Instantly share code, notes, and snippets.

@ribrdb
Created May 24, 2013 21:08
Show Gist options
  • Save ribrdb/5646528 to your computer and use it in GitHub Desktop.
Save ribrdb/5646528 to your computer and use it in GitHub Desktop.
def makeCallback(callback:ActionMod.Callback)
callback
end
def foo
fragment = self
makeCallback do
def onDestroyActionMode(actionMode)
fragment.setSelected(false)
fragment.clearCurrentActionMode
# or maybe fragment.onDestroyActionMode(actionMode)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment