Closed DoTheMonkeyBusiness closed 5 years ago
@egorikftp I don't understand why, but when I go to the end of the list sometimes I get this error, help me fix it.
@DoTheMonkeyBusiness I will check your homework soon and found the root problem
@egorikftp Why 3 and 2 here if it should be 2 and 1?
@DoTheMonkeyBusiness
singleton
student name
and click Ok
About your crash above) Please try to make this code and scroll to the bottom of recyclerview and you will see what's wrong with your behavior.
@egorikftp redid🙋♂️, now the app doesn't crash, but i'm don't understand this:
RecyclerView doesn't save state (I see that you don't register your application in a manifest).
@DoTheMonkeyBusiness I mean, that you told that after a rotation change your web service recreate. After that, I suggested you use Koin library. Then you added this di library into your project, but your service still recreates, all data pass to recycler view once again. In this case scroll position not save after rotation.
@egorikftp Redid🙋♂️
@DoTheMonkeyBusiness Done successfully
@egorikftp
RecyclerView: https://github.com/DoTheMonkeyBusiness/EpamAndroid/pull/6
@egorikftp when I change the screen rotation, the StudentWebService class is recreated and because of this the recycler does not save its state and errors occur.