• 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
.circleci Loading commit data...
.github Loading commit data...
app Loading commit data...
config/quality Loading commit data...
core Loading commit data...
draw Loading commit data...
emoji Loading commit data...
gradle/wrapper Loading commit data...
player Loading commit data...
suggestions Loading commit data...
util Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CODING_STYLE.md Loading commit data...
HISTORY.md Loading commit data...
LICENSE Loading commit data...
PLANNING.md Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
build.gradle Loading commit data...
debug.keystore Loading commit data...
dependencies.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
my-release-key.keystore Loading commit data...
settings.gradle Loading commit data...