Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthew Finkel
fenix
Commits
34892ff5
Commit
34892ff5
authored
Aug 13, 2020
by
Matthew Finkel
Browse files
Bug 40019: Adjust is disabled on Release when data collection is disabled
parent
b00f8f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/components/metrics/AdjustMetricsService.kt
View file @
34892ff5
...
...
@@ -22,7 +22,7 @@ class AdjustMetricsService(private val application: Application) : MetricsServic
if
((
BuildConfig
.
ADJUST_TOKEN
.
isNullOrBlank
()))
{
Log
.
i
(
LOGTAG
,
"No adjust token defined"
)
if
(
Config
.
channel
.
isReleased
)
{
if
(
Config
.
channel
.
isReleased
&&
!
BuildConfig
.
DATA_COLLECTION_DISABLED
)
{
throw
IllegalStateException
(
"No adjust token defined for release build"
)
}
...
...
Write
Preview
Supports
Markdown
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