Created
January 17, 2020 00:16
-
-
Save satoshun/b05f80511ac1183725497e6e4a91ee60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainFragment : Fragment(R.layout.main_frag) { | |
// private lateinit var binding: MainFragBinding <-- memory leak? | |
private val binding: MainFragBinding get() = MainFragBinding.bind(view!!) | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment