Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0f346c8c
authored
Jul 23, 2020
by
aquilescanta
Committed by
Oliver Woodman
Jul 24, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix withDecoderExtensions flavor detection in internal demo app
PiperOrigin-RevId: 322781213
parent
c271eb85
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
demos/main/build.gradle
demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoUtil.java
demos/main/build.gradle
View file @
0f346c8c
...
@@ -55,9 +55,11 @@ android {
...
@@ -55,9 +55,11 @@ android {
productFlavors
{
productFlavors
{
noDecoderExtensions
{
noDecoderExtensions
{
dimension
"decoderExtensions"
dimension
"decoderExtensions"
buildConfigField
"boolean"
,
"USE_DECODER_EXTENSIONS"
,
"false"
}
}
withDecoderExtensions
{
withDecoderExtensions
{
dimension
"decoderExtensions"
dimension
"decoderExtensions"
buildConfigField
"boolean"
,
"USE_DECODER_EXTENSIONS"
,
"true"
}
}
}
}
}
}
...
...
demos/main/src/main/java/com/google/android/exoplayer2/demo/DemoUtil.java
View file @
0f346c8c
...
@@ -61,7 +61,7 @@ public final class DemoUtil {
...
@@ -61,7 +61,7 @@ public final class DemoUtil {
/** Returns whether extension renderers should be used. */
/** Returns whether extension renderers should be used. */
public
static
boolean
useExtensionRenderers
()
{
public
static
boolean
useExtensionRenderers
()
{
return
"withDecoderExtensions"
.
equals
(
BuildConfig
.
FLAVOR
)
;
return
BuildConfig
.
USE_DECODER_EXTENSIONS
;
}
}
public
static
RenderersFactory
buildRenderersFactory
(
public
static
RenderersFactory
buildRenderersFactory
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment