mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-06 07:29:10 +00:00
Highlight unread circulars on iOS
This commit is contained in:
@@ -163,12 +163,14 @@ class CircularLetterAdapter(
|
||||
}
|
||||
|
||||
holder.viewButton.setOnClickListener {
|
||||
adapterScope.launch {
|
||||
AndroidDatabase.getDaoInstance(context).markRead(
|
||||
circulars[position].id,
|
||||
circulars[position].school,
|
||||
true
|
||||
)
|
||||
if (!circulars[position].read) {
|
||||
adapterScope.launch {
|
||||
AndroidDatabase.getDaoInstance(context).markRead(
|
||||
circulars[position].id,
|
||||
circulars[position].school,
|
||||
true
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
FileUtils.viewFile(circulars[position].url, context)
|
||||
|
||||
Reference in New Issue
Block a user