mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Don't show chapter number in history item when unknown
This commit is contained in:
		@@ -57,10 +57,16 @@ class HistoryHolder(
 | 
			
		||||
        manga_title.text = manga.title
 | 
			
		||||
 | 
			
		||||
        // Set chapter number + timestamp
 | 
			
		||||
        val formattedNumber = adapter.decimalFormat.format(chapter.chapter_number.toDouble())
 | 
			
		||||
        manga_subtitle.text = itemView.context.getString(
 | 
			
		||||
            R.string.recent_manga_time, formattedNumber, Date(history.last_read).toTimestampString()
 | 
			
		||||
        )
 | 
			
		||||
        if (chapter.chapter_number > -1f) {
 | 
			
		||||
            val formattedNumber = adapter.decimalFormat.format(chapter.chapter_number.toDouble())
 | 
			
		||||
            manga_subtitle.text = itemView.context.getString(
 | 
			
		||||
                R.string.recent_manga_time,
 | 
			
		||||
                formattedNumber,
 | 
			
		||||
                Date(history.last_read).toTimestampString()
 | 
			
		||||
            )
 | 
			
		||||
        } else {
 | 
			
		||||
            manga_subtitle.text = Date(history.last_read).toTimestampString()
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Set cover
 | 
			
		||||
        GlideApp.with(itemView.context).clear(cover)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user