@all
kalo ada yang nemuin error begindrang: Caused by android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment id.gits.jasaraharjainternal.mvvm.santunan.listsantunan.ListSantunanFragment: could not find Fragment constructor
make sure ketika bikin fragment, ga perlu pake default constructor yaaa, dan buat pass / receive data dari luar ke fragment, pake arguments aja yaaa & pake singleton pattern newInstance(data: Int) = TestFragment().withArgs { putInt(ARGUMENT_TYPE, data) }
how to: https://medium.com/@azjkjensen/using-the-newinstance-pattern-in-kotlin-e40c1b4ba1ef buglist and explaination:
https://stackoverflow.com/a/49814636/3763032 https://stackoverflow.com/a/52269053/3763032 https://stackoverflow.com/a/10450535/3763032