mirror of
https://github.com/Matte23/circolapp.git
synced 2026-10-15 23:45:16 +00:00
Highlight unread circulars on iOS
This commit is contained in:
6 files changed
+23
-8
No files matched your search
@@ -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