mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Fix withDecoderExtensions flavor detection in internal demo app
PiperOrigin-RevId: 322781213
This commit is contained in:
parent
c271eb85fd
commit
0f346c8c2f
2 changed files with 3 additions and 1 deletions
|
|
@ -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…
Reference in a new issue