Promote the new APNG renderer to a normal flag.

This commit is contained in:
Greyson Parrelli
2026-03-24 09:52:17 -04:00
committed by Cody Henthorne
parent eb8ad5218d
commit 089d8a50b2
8 changed files with 20 additions and 23 deletions

View File

@@ -12,7 +12,7 @@ import androidx.annotation.RequiresApi;
import org.signal.core.util.logging.Log;
import org.thoughtcrime.securesms.dependencies.AppDependencies;
import org.thoughtcrime.securesms.keyvalue.SignalStore;
/**
* Easy access to various properties of the device, typically to make performance-related decisions.
@@ -26,7 +26,7 @@ public final class DeviceProperties {
* large numbers of APNGs simultaneously.
*/
public static boolean shouldAllowApngStickerAnimation(@NonNull Context context) {
if (SignalStore.labs().getNewApngRenderer()) {
if (RemoteConfig.newApngRenderer()) {
return true;
}

View File

@@ -1326,5 +1326,16 @@ object RemoteConfig {
hotSwappable = true
)
/**
* Whether to use the new custom APNG renderer instead of the existing third-party library.
*/
@JvmStatic
@get:JvmName("newApngRenderer")
val newApngRenderer: Boolean by remoteBoolean(
key = "android.newApngRenderer",
defaultValue = false,
hotSwappable = false
)
// endregion
}