Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Charles
Nebulo
Commits
07cef441
Commit
07cef441
authored
Nov 28, 2019
by
Daniel Wolf
Browse files
Show a warning when the sentry DSN is not set
parent
19bfd047
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/activity/MainActivity.kt
View file @
07cef441
...
...
@@ -170,6 +170,11 @@ class MainActivity : NavigationDrawerActivity() {
registerLocalReceiver
(
listOf
(
BROADCAST_RELOAD_MENU
),
true
)
{
reloadMenuItems
()
}
@Suppress
(
"ConstantConditionIf"
)
if
(!
BuildConfig
.
DEBUG
&&
BuildConfig
.
SENTRY_DSN
==
"dummy"
)
{
Toast
.
makeText
(
this
,
"Warning, Sentry DSN is not valid"
,
Toast
.
LENGTH_LONG
).
show
()
}
}
override
fun
onDestroy
()
{
...
...
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