Commit 05dc9692 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Wrong references

parent 411f0cfa
......@@ -36,7 +36,7 @@ class QueryLogDetailFragment : Fragment() {
private set
private lateinit var timeFormatSameDay: DateFormat
private lateinit var timeFormatDifferentDay: DateFormat
internal fun formatTimeStamp(timestamp:Long): String {
private fun formatTimeStamp(timestamp:Long): String {
return if(isTimeStampToday(timestamp)) timeFormatSameDay.format(timestamp)
else timeFormatDifferentDay.format(timestamp)
}
......@@ -71,6 +71,7 @@ class QueryLogDetailFragment : Fragment() {
private var viewCreated = false
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
setupTimeFormat()
return inflater.inflate(R.layout.fragment_querylog_detail, container, false)
}
......
......@@ -38,7 +38,6 @@ import java.util.*
*/
class QueryLogListFragment: Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
setupTimeFormat()
return layoutInflater.inflate(R.layout.fragment_querylog_list, container, false)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment