mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Promote the new APNG renderer to a normal flag.
This commit is contained in:
committed by
Cody Henthorne
parent
eb8ad5218d
commit
089d8a50b2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user