mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
Use createdAt
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
042583c683
commit
d596d2f11e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ import com.owncloud.android.utils.PermissionUtil.checkSelfPermission
|
|||
class CalendarEventManager(private val context: Context) {
|
||||
|
||||
fun openCalendarEvent(searchResult: SearchResultEntry, listInterface: UnifiedSearchListInterface) {
|
||||
val createdAt = searchResult.attributes["createdAt"]?.toLongOrNull()
|
||||
val createdAt = searchResult.attributes["createdAt"]?.toLongOrNull()?.times(1000L)
|
||||
val haveReadCalendarPermission = checkSelfPermission(context, Manifest.permission.READ_CALENDAR)
|
||||
val eventId: Long? = if (haveReadCalendarPermission && createdAt != null) {
|
||||
getCalendarEventId(searchResult.title, createdAt)
|
||||
|
|
Loading…
Reference in a new issue