Skip to content

Commit

Permalink
highlight zero-size-download requests
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed Feb 25, 2019
1 parent 96ac05c commit 7c745e8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class ProxyLogAdapter(val context: Context) : PagedListAdapter<ProxyLog, ProxyLo
val up = humanReadableByteCount(proxyLog.uploadBytes!!.toLong(), true)
val down = humanReadableByteCount(proxyLog.downloadBytes!!.toLong(), true)
row2_2.text = "${up}↑, ${down}"
if (proxyLog.downloadBytes!!.toInt() == 0) {
row2_2.setTextColor(ContextCompat.getColor(context, R.color.colorAccent))
} else {
row2_2.setTextColor(ContextCompat.getColor(context, R.color.colorDefaultText))
}

}

val sdf = java.text.SimpleDateFormat("HH:mm:ss")
Expand Down

0 comments on commit 7c745e8

Please sign in to comment.