Skip to content

Commit

Permalink
Add BuildConfig.DEBUG check.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Jan 2, 2024
1 parent 0e17bf7 commit 68d2632
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,23 @@ class MediaProjectionSource(
private class Callback : MediaProjection.Callback() {
override fun onCapturedContentVisibilityChanged(isVisible: Boolean) {
super.onCapturedContentVisibilityChanged(isVisible)
Log.d(TAG, "Callback#onCapturedContentVisibilityChanged")
if (BuildConfig.DEBUG) {
Log.d(TAG, "Callback#onCapturedContentVisibilityChanged")
}
}

override fun onCapturedContentResize(width: Int, height: Int) {
super.onCapturedContentResize(width, height)
Log.d(TAG, "Callback#onCapturedContentResize")
if (BuildConfig.DEBUG) {
Log.d(TAG, "Callback#onCapturedContentResize")
}
}

override fun onStop() {
super.onStop()
Log.d(TAG, "Callback#onStop")
if (BuildConfig.DEBUG) {
Log.d(TAG, "Callback#onStop")
}
}
}

Expand Down

0 comments on commit 68d2632

Please sign in to comment.