Skip to content

Commit

Permalink
- suppress detekt error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed May 28, 2021
1 parent 8c6ad31 commit 66dd161
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class LibsBuilder : Serializable {
var showVersion: Boolean = true
var showLoadingProgress = true

@Suppress("VariableNaming")
internal var _aboutShowIcon: Boolean? = null
var aboutShowIcon: Boolean = true
set(value) {
Expand All @@ -44,19 +45,25 @@ class LibsBuilder : Serializable {
}
var aboutVersionString: String = ""
var aboutAppName: String? = null

@Suppress("VariableNaming")
internal var _aboutShowVersion: Boolean? = null
var aboutShowVersion: Boolean = true
set(value) {
_aboutShowVersion = value
field = value
}
var aboutDescription: String? = null

@Suppress("VariableNaming")
internal var _aboutShowVersionName: Boolean? = null
var aboutShowVersionName: Boolean = true
set(value) {
_aboutShowVersionName = value
field = value
}

@Suppress("VariableNaming")
internal var _aboutShowVersionCode: Boolean? = null
var aboutShowVersionCode: Boolean = true
set(value) {
Expand Down Expand Up @@ -525,7 +532,10 @@ class LibsBuilder : Serializable {
*/
private fun preCheck() {
if (fields.isEmpty()) {
Log.w("AboutLibraries", "Have you missed to call withFields(R.string.class.getFields())? - autoDetect won't work - https://github.com/mikepenz/AboutLibraries/wiki/HOWTO:-Fragment")
Log.w(
"AboutLibraries",
"Have you missed to call withFields(R.string.class.getFields())? - autoDetect won't work - https://github.com/mikepenz/AboutLibraries/wiki/HOWTO:-Fragment"
)
}
}

Expand Down

0 comments on commit 66dd161

Please sign in to comment.