|
|
@ -88,14 +88,16 @@ class ChipProvider @Inject constructor(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (task.hasLocation() && filter !is PlaceFilter && preferences.showPlaceChip) {
|
|
|
|
if (task.hasLocation() && filter !is PlaceFilter && preferences.showPlaceChip) {
|
|
|
|
val location = task.getLocation()
|
|
|
|
val location = task.getLocation()
|
|
|
|
FilterChip(
|
|
|
|
if (location != null) {
|
|
|
|
filter = PlaceFilter(location.place),
|
|
|
|
FilterChip(
|
|
|
|
defaultIcon = R.drawable.ic_outline_place_24px,
|
|
|
|
filter = PlaceFilter(location.place),
|
|
|
|
onClick = onClick,
|
|
|
|
defaultIcon = R.drawable.ic_outline_place_24px,
|
|
|
|
showText = showText,
|
|
|
|
onClick = onClick,
|
|
|
|
showIcon = showIcon,
|
|
|
|
showText = showText,
|
|
|
|
colorProvider = this::getColor,
|
|
|
|
showIcon = showIcon,
|
|
|
|
)
|
|
|
|
colorProvider = this::getColor,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!isSubtask && preferences.showListChip) {
|
|
|
|
if (!isSubtask && preferences.showListChip) {
|
|
|
|
if (!isNullOrEmpty(task.googleTaskList) && filter !is GtasksFilter) {
|
|
|
|
if (!isNullOrEmpty(task.googleTaskList) && filter !is GtasksFilter) {
|
|
|
|