Refactoring name

This commit is contained in:
Theo van Elsberg 2021-10-27 22:54:09 +02:00
parent f96727224d
commit b645185005

View file

@ -211,8 +211,8 @@ class DashPodHistoryActivity : NoSplashAppCompatActivity() {
} }
} }
private fun setTextViewColor(includeresult: Boolean, textview: TextView, record: HistoryRecord) { private fun setTextViewColor(check_result: Boolean, textview: TextView, record: HistoryRecord) {
if (includeresult && !record.isSuccess()) { if (check_result && !record.isSuccess()) {
// Record says not success // Record says not success
textview.setTextColor(android.graphics.Color.YELLOW) textview.setTextColor(android.graphics.Color.YELLOW)
return return
@ -251,7 +251,7 @@ class DashPodHistoryActivity : NoSplashAppCompatActivity() {
private fun setType(record: HistoryRecord, typeView: TextView) { private fun setType(record: HistoryRecord, typeView: TextView) {
typeView.text = resourceHelper.gs(record.commandType.resourceId) typeView.text = resourceHelper.gs(record.commandType.resourceId)
// Set some color, include result // Set some color, include result
setTextViewColor(includeresult=true, typeView, record) setTextViewColor(check_result=true, typeView, record)
} }
private fun setValue(historyEntry: HistoryRecord, valueView: TextView) { private fun setValue(historyEntry: HistoryRecord, valueView: TextView) {
@ -285,7 +285,7 @@ class DashPodHistoryActivity : NoSplashAppCompatActivity() {
"" ""
} }
// Set some color // Set some color
setTextViewColor(includeresult=false, valueView, historyEntry) setTextViewColor(check_result=false, valueView, historyEntry)
} }
override fun getItemCount(): Int { override fun getItemCount(): Int {