Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19643788 authored by Nihar Thakkar's avatar Nihar Thakkar Committed by Sumit Pundir
Browse files

Fixed some issues where the access token wasn't being passed to the Google API.

parent 2123198b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,8 +16,9 @@ import java.util.logging.Logger
class DavAddressBook @JvmOverloads constructor(
        httpClient: OkHttpClient,
        location: HttpUrl,
	accessToken: String?,
        log: Logger = Constants.log
): DavCollection(httpClient, location, log) {
): DavCollection(httpClient, location, accessToken, log) {

    companion object {
        val MIME_VCARD3_UTF8 = MediaType.parse("text/vcard;charset=utf-8")
+2 −1
Original line number Diff line number Diff line
@@ -18,8 +18,9 @@ import java.util.logging.Logger
class DavCalendar @JvmOverloads constructor(
        httpClient: OkHttpClient,
        location: HttpUrl,
	accessToken: String?,
        log: Logger = Constants.log
): DavCollection(httpClient, location, log) {
): DavCollection(httpClient, location, accessToken, log) {

    companion object {
        val MIME_ICALENDAR = MediaType.parse("text/calendar")
+2 −1
Original line number Diff line number Diff line
@@ -22,8 +22,9 @@ import java.util.logging.Logger
open class DavCollection @JvmOverloads constructor(
        httpClient: OkHttpClient,
        location: HttpUrl,
	accessToken: String?,
        log: Logger = Constants.log
): DavResource(httpClient, location, null, log) {
): DavResource(httpClient, location, accessToken, log) {

    /**
     * Sends a REPORT sync-collection request.