• robotjini's avatar
    Fixed three issues related to chatroom loading speed: · db3fe201
    robotjini authored
    1.Changed the loading of moderator roles until after the room loads up so it does not block the loading of the ui. There isn't actually anything that uses the moderator roles right now, so i am leaving it to the implementer of that on how to best handle the delayed information. I wanted to make sure the functionality was the same after the changes though rather than just deleting it.
    
    2. recycler_view was adding its adapter in showMessages this was causing the error: "E/RecyclerView: No adapter attached; skipping layout"
    This seems to be the cause of a missed update step and ui delay. Code to add adapter was added to setupRecyclerView, which is called in the onViewCreated function.
    
    3. loadActiveMembers function was being called from ChatRoomFragment object and the network / data access was being done in the UI thread. Moved the function call from the end of the function loadMessages to just after the end of said function. Changed the function loadActiveMembers to do most of its work in an I.O. thread and just the view updating in a UI thread.
    db3fe201
Name
Last commit
Last update
..
gradle/wrapper Loading commit data...
schemas/chat.rocket.android.db.RCDatabase Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
build-sdk.sh Loading commit data...
build.gradle Loading commit data...
google-services.json Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
proguard-rules.pro Loading commit data...
sender-id.txt Loading commit data...