mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
An error was displayed by mistake
This commit is contained in:
parent
e7819ce678
commit
8ca829d538
1 changed files with 7 additions and 1 deletions
|
@ -18,6 +18,7 @@ package im.vector.riotx.features.roomdirectory.roompreview
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
|
import androidx.core.view.isVisible
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.transition.TransitionManager
|
import androidx.transition.TransitionManager
|
||||||
import com.airbnb.mvrx.args
|
import com.airbnb.mvrx.args
|
||||||
|
@ -104,7 +105,12 @@ class RoomPreviewNoPreviewFragment : VectorBaseFragment() {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
roomPreviewNoPreviewError.setTextOrHide(errorFormatter.toHumanReadable(state.lastError))
|
if (state.lastError == null) {
|
||||||
|
roomPreviewNoPreviewError.isVisible = false
|
||||||
|
} else {
|
||||||
|
roomPreviewNoPreviewError.isVisible = true
|
||||||
|
roomPreviewNoPreviewError.text = errorFormatter.toHumanReadable(state.lastError)
|
||||||
|
}
|
||||||
|
|
||||||
if (state.roomJoinState == JoinState.JOINED) {
|
if (state.roomJoinState == JoinState.JOINED) {
|
||||||
// Quit this screen
|
// Quit this screen
|
||||||
|
|
Loading…
Reference in a new issue