mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-29 22:24:29 +02:00
Casting message, caching creator images
This commit is contained in:
parent
4b6a2c9829
commit
ca15983a72
@ -294,7 +294,9 @@ class StateCasting {
|
|||||||
UIDialogs.toast(it, "Connecting to device...")
|
UIDialogs.toast(it, "Connecting to device...")
|
||||||
synchronized(_castingDialogLock) {
|
synchronized(_castingDialogLock) {
|
||||||
if(_currentDialog == null) {
|
if(_currentDialog == null) {
|
||||||
_currentDialog = UIDialogs.showDialog(context, R.drawable.ic_loader_animated, true, "Connecting to [${device.name}]", "Make sure you are on the same network", null, -2,
|
_currentDialog = UIDialogs.showDialog(context, R.drawable.ic_loader_animated, true,
|
||||||
|
"Connecting to [${device.name}]",
|
||||||
|
"Make sure you are on the same network\n\nVPNs and guest networks can prevent connections", null, -2,
|
||||||
UIDialogs.Action("Disconnect", {
|
UIDialogs.Action("Disconnect", {
|
||||||
device.stop();
|
device.stop();
|
||||||
}));
|
}));
|
||||||
|
@ -9,6 +9,7 @@ import android.view.View
|
|||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
import androidx.constraintlayout.widget.ConstraintLayout
|
import androidx.constraintlayout.widget.ConstraintLayout
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
||||||
import com.futo.platformplayer.R
|
import com.futo.platformplayer.R
|
||||||
import com.futo.platformplayer.constructs.Event1
|
import com.futo.platformplayer.constructs.Event1
|
||||||
import com.futo.platformplayer.getDataLinkFromUrl
|
import com.futo.platformplayer.getDataLinkFromUrl
|
||||||
@ -81,12 +82,14 @@ class CreatorThumbnail : ConstraintLayout {
|
|||||||
Glide.with(_imageChannelThumbnail)
|
Glide.with(_imageChannelThumbnail)
|
||||||
.load(url)
|
.load(url)
|
||||||
.placeholder(R.drawable.placeholder_channel_thumbnail)
|
.placeholder(R.drawable.placeholder_channel_thumbnail)
|
||||||
|
.diskCacheStrategy(DiskCacheStrategy.DATA)
|
||||||
.crossfade()
|
.crossfade()
|
||||||
.into(_imageChannelThumbnail);
|
.into(_imageChannelThumbnail);
|
||||||
} else {
|
} else {
|
||||||
Glide.with(_imageChannelThumbnail)
|
Glide.with(_imageChannelThumbnail)
|
||||||
.load(url)
|
.load(url)
|
||||||
.placeholder(R.drawable.placeholder_channel_thumbnail)
|
.placeholder(R.drawable.placeholder_channel_thumbnail)
|
||||||
|
.diskCacheStrategy(DiskCacheStrategy.DATA)
|
||||||
.into(_imageChannelThumbnail);
|
.into(_imageChannelThumbnail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user