Skip to content

Commit

Permalink
make it compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium314 committed Jan 12, 2025
1 parent d4724a5 commit fa39541
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private fun Note.shouldShowAsQuest(
if (
(
comments.last().isReplyFromUser(userId) ||
(probablyCreatedByUserInThisApp(userId) && !hasReplies)
(probablyCreatedByUserInThisApp(userId, !showOnlyNotesPhrasedAsQuestions) && !hasReplies)
)
&& !comments.last().containsSurveyRequiredMarker()
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import android.content.IntentFilter
import android.content.ServiceConnection
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.graphics.Color
import android.graphics.PointF
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,21 +576,14 @@ fun createMapStyle(name: String, accessToken: String, languages: List<String>, c
Layer("labels-housenumbers",
src = "housenum_label",
minZoom = 18.0,
paint = defaultTextStyle.copy(
text = "[\"get\", \"house_num\"]",
sortKey = "15",
)
paint = defaultTextStyle.copy(text = "[\"get\", \"house_num\"]")
),

Layer("labels-road",
src = "road",
minZoom = 14.0,
filter = listOf(isLines),
paint = defaultTextStyle.copy(
wrap = 25,
placement = "line-center",
sortKey = "10",
)
paint = defaultTextStyle.copy(wrap = 25, placement = "line-center")
),

Layer("labels-rivers",
Expand All @@ -600,10 +593,7 @@ fun createMapStyle(name: String, accessToken: String, languages: List<String>, c
tagIsNot("structure", "tunnel"),
tagIn("class", "river", "canal")
),
paint = waterTextStyle.copy(
placement = "line-center",
sortKey = "11",
)
paint = waterTextStyle.copy(placement = "line-center",)
),

Layer("labels-streams",
Expand All @@ -613,10 +603,7 @@ fun createMapStyle(name: String, accessToken: String, languages: List<String>, c
tagIsNot("structure", "tunnel"),
tagIn("class", "stream", "ditch", "drain")
),
paint = waterTextStyle.copy(
placement = "line-center",
sortKey = "12"
)
paint = waterTextStyle.copy(placement = "line-center")
),

/*
Expand Down

0 comments on commit fa39541

Please sign in to comment.