mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
Increase notification video attachment GIF length (#3027)
- Increase the length of the GIF created for video attachments in notifications as the Android 13 bug that limited this has been resolved
This commit is contained in:
parent
3afc5d4d55
commit
2b445ca03c
|
@ -1540,7 +1540,7 @@ class MessagingManager @Inject constructor(
|
||||||
run frameLoop@{
|
run frameLoop@{
|
||||||
for (timeInMicroSeconds in VIDEO_START_MICROSECONDS until durationInMicroSeconds step VIDEO_INCREMENT_MICROSECONDS) {
|
for (timeInMicroSeconds in VIDEO_START_MICROSECONDS until durationInMicroSeconds step VIDEO_INCREMENT_MICROSECONDS) {
|
||||||
// Max size in bytes for notification GIF
|
// Max size in bytes for notification GIF
|
||||||
val maxSize = (2500000 - singleFrame)
|
val maxSize = (5000000 - singleFrame)
|
||||||
if (processingFramesSize >= maxSize) {
|
if (processingFramesSize >= maxSize) {
|
||||||
return@frameLoop
|
return@frameLoop
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue