Fix withDecoderExtensions flavor detection in internal demo app
PiperOrigin-RevId: 322781213
This commit is contained in:
parent
c271eb85fd
commit
0f346c8c2f
@ -55,9 +55,11 @@ android {
|
||||
productFlavors {
|
||||
noDecoderExtensions {
|
||||
dimension "decoderExtensions"
|
||||
buildConfigField "boolean", "USE_DECODER_EXTENSIONS", "false"
|
||||
}
|
||||
withDecoderExtensions {
|
||||
dimension "decoderExtensions"
|
||||
buildConfigField "boolean", "USE_DECODER_EXTENSIONS", "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public final class DemoUtil {
|
||||
|
||||
/** Returns whether extension renderers should be used. */
|
||||
public static boolean useExtensionRenderers() {
|
||||
return "withDecoderExtensions".equals(BuildConfig.FLAVOR);
|
||||
return BuildConfig.USE_DECODER_EXTENSIONS;
|
||||
}
|
||||
|
||||
public static RenderersFactory buildRenderersFactory(
|
||||
|
Loading…
x
Reference in New Issue
Block a user