Skip to content

Instantly share code, notes, and snippets.

@YashishDua
Created November 17, 2018 11:34
Show Gist options
  • Save YashishDua/0a9a15138addedc1a961fc063ddcec56 to your computer and use it in GitHub Desktop.
Save YashishDua/0a9a15138addedc1a961fc063ddcec56 to your computer and use it in GitHub Desktop.
class WallFragment : Fragment() {
companion object {
fun newInstance() = WallFragment()
}
private lateinit var fragmentListener: FragmentListener
override fun onAttach(context: Context?) {
super.onAttach(context)
fragmentListener = activity as FragmentListener
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment