Clean code and update CHANGES

This commit is contained in:
ganfra 2021-09-23 13:19:29 +02:00
parent fc5c6b9b00
commit d9e9568c2e
4 changed files with 2 additions and 6 deletions

1
changelog.d/4065.misc Normal file
View file

@ -0,0 +1 @@
Improve performances on RoomDetail screen

View file

@ -34,9 +34,7 @@ import im.vector.app.features.pin.SharedPrefPinCodeStore
import im.vector.app.features.ui.SharedPreferencesUiStateRepository
import im.vector.app.features.ui.UiStateRepository
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.SupervisorJob
import org.matrix.android.sdk.api.Matrix
import org.matrix.android.sdk.api.auth.AuthenticationService
@ -107,7 +105,6 @@ abstract class VectorModule {
fun providesApplicationCoroutineScope(): CoroutineScope {
return CoroutineScope(SupervisorJob() + Dispatchers.Main)
}
}
@Binds

View file

@ -20,7 +20,6 @@ import android.view.View
import android.view.ViewStub
import im.vector.app.core.ui.views.FailedMessagesWarningView
import im.vector.app.databinding.FragmentRoomDetailBinding
import im.vector.app.features.home.room.detail.composer.VoiceMessageRecorderView
import im.vector.app.features.invite.VectorInviteView
import kotlin.reflect.KMutableProperty0

View file

@ -32,7 +32,6 @@ import androidx.transition.AutoTransition
import androidx.transition.TransitionManager
import im.vector.app.R
import im.vector.app.features.reactions.data.EmojiData
import im.vector.app.features.reactions.data.EmojiDataSource
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
@ -64,7 +63,7 @@ class EmojiRecyclerAdapter @Inject constructor() :
}
@SuppressLint("NotifyDataSetChanged")
fun update(emojiData: EmojiData){
fun update(emojiData: EmojiData) {
rawData = emojiData
notifyDataSetChanged()
}