mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Enforce max gif playback using unreserved count from exo pool.
This commit is contained in:
committed by
Cody Henthorne
parent
c1ff2aeeff
commit
6999d1fbf1
@@ -25,10 +25,10 @@ public final class GiphyMp4PlaybackPolicy {
|
||||
}
|
||||
|
||||
public static int maxSimultaneousPlaybackInSearchResults() {
|
||||
return 12;
|
||||
return ApplicationDependencies.getExoPlayerPool().getPoolStats().getMaxUnreserved();
|
||||
}
|
||||
|
||||
public static int maxSimultaneousPlaybackInConversation() {
|
||||
return 4;
|
||||
return ApplicationDependencies.getExoPlayerPool().getPoolStats().getMaxUnreserved() / 3;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user