Skip to content

Commit

Permalink
prevent enabling of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ochadenas committed Dec 4, 2024
1 parent 6eae19e commit d161f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/cpudefense/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Settings {
var showFrameRate: Boolean = false
var fastFastForward: Boolean = false
var keepLevels: Boolean = true
var activateLogging: Boolean = true
var activateLogging: Boolean = false

fun loadFromFile(prefs: SharedPreferences): Boolean
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class GameActivity : Activity() {
*/
{
super.onCreate(savedInstanceState)
if (settings.activateLogging)
if (GameMechanics.enableLogging && settings.activateLogging)
logger = Logger(this)
logger?.log("Creating Game Activity")
/* here, the size of the surfaces might not be known */
Expand Down

0 comments on commit d161f26

Please sign in to comment.