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

Commit 1372eb52 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Lint

parent 396537a4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import java.util.Map;
 * @author Marten Gajda <marten@dmfs.org>
 * @author Tobias Reinsch <tobias@dmfs.org>
 */
@SuppressWarnings("ALL")
public final class TaskContract
{

+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import java.util.Map;
/**
 * TODO
 */
@SuppressWarnings("ALL")
public final class UriFactory
{
    private final String mAuthority;
+10 −6
Original line number Diff line number Diff line
@@ -203,13 +203,17 @@ abstract class AndroidEvent(
            }

            if (tsEnd != null) {
                if (tsEnd < tsStart)
                when {
                    tsEnd < tsStart ->
                        Ical4Android.log.warning("dtEnd $tsEnd (allDay) < dtStart $tsStart (allDay), ignoring")
                else if (tsEnd == tsStart)

                    tsEnd == tsStart ->
                        Ical4Android.log.fine("dtEnd $tsEnd (allDay) = dtStart, won't generate DTEND property")
                else /* tsEnd > tsStart */

                    else /* tsEnd > tsStart */ ->
                        event.dtEnd = DtEnd(Date(tsEnd))
                }
            }

        } else /* !allDay */ {
            // use DATE-TIME values
+2 −2
Original line number Diff line number Diff line
@@ -447,7 +447,7 @@ abstract class AndroidTask(
    }

    @CallSuper
    protected open fun buildTask(builder: BatchOperation.CpoBuilder, update: Boolean) {
    protected open fun buildTask(builder: CpoBuilder, update: Boolean) {
        if (!update)
            builder .withValue(Tasks.LIST_ID, taskList.id)

@@ -550,7 +550,7 @@ abstract class AndroidTask(
    }


    protected fun CpoBuilder.withTaskId(column: String, idxTask: Int?): BatchOperation.CpoBuilder {
    protected fun CpoBuilder.withTaskId(column: String, idxTask: Int?): CpoBuilder {
        if (idxTask != null)
            withValueBackReference(column, idxTask)
        else
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ object AttendeeMappings {
        val relationship = row.getAsInteger(Attendees.ATTENDEE_RELATIONSHIP) ?: Attendees.RELATIONSHIP_NONE

        var cuType: CuType? = null
        var role: Role? = null
        val role: Role?

        if (relationship == Attendees.RELATIONSHIP_SPEAKER) {
            role = Role.CHAIR
Loading