Skip to content

Commit

Permalink
Spotless Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshpaliyal committed Nov 20, 2021
1 parent e0b21c6 commit b621bfb
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/dev/spikeysanju/einsen/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package dev.spikeysanju.einsen

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import dev.spikeysanju.einsen.R
import dev.spikeysanju.einsen.utils.DateValidator
import java.util.*


fun Context?.showDatePicker(
defaultCalendar: Calendar,
onDismiss: (() -> Unit)? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ data class Task(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "id")
val id: Int = 0
){
) {
fun getWorkerId() = "reminder_$id"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ class DateValidator() : CalendarConstraints.DateValidator {
} else endDate == -1L && date >= startDate
}


override fun describeContents(): Int {
return 0
}
Expand All @@ -65,5 +64,4 @@ class DateValidator() : CalendarConstraints.DateValidator {
return arrayOfNulls(size)
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ fun AddTaskScreen(
}
}


// Due Date Time
item {
Spacer(modifier = modifier.height(24.dp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ fun EditTaskScreen(modifier: Modifier, viewModel: MainViewModel, actions: MainAc
}
}


// Due Date Time
item {
Spacer(modifier = modifier.height(24.dp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@ fun Context.scheduleReminders(task: Task) {
fun Context.cancelReminder(task: Task) {
WorkManager.getInstance(this).cancelUniqueWork(task.getWorkerId())
}


Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import dagger.assisted.AssistedInject
import dev.spikeysanju.einsen.R
import dev.spikeysanju.einsen.data.local.db.TaskDao
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.single
import kotlinx.coroutines.withContext

const val ARG_ID = "arg_id"
Expand Down Expand Up @@ -78,7 +77,6 @@ class ReminderWorker @AssistedInject constructor(
builder.setAutoCancel(true)

notificationManager.notify(task.id, builder.build())

}
return Result.success()
}
Expand Down

0 comments on commit b621bfb

Please sign in to comment.