mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix source item flashing when pinning
This commit is contained in:
		| @@ -46,4 +46,15 @@ data class SourceItem( | ||||
|     ) { | ||||
|         holder.bind(this) | ||||
|     } | ||||
|  | ||||
|     override fun equals(other: Any?): Boolean { | ||||
|         if (other is SourceItem) { | ||||
|             return source.id == other.source.id && getHeader()?.code == other.getHeader()?.code | ||||
|         } | ||||
|         return false | ||||
|     } | ||||
|  | ||||
|     override fun hashCode(): Int { | ||||
|         return source.id.hashCode() + (getHeader()?.code?.hashCode() ?: 0).toInt() | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user