Skip to content

Commit 4d44904

Browse files
committed
- update links and resources
1 parent 472eb67 commit 4d44904

File tree

7 files changed

+24
-14
lines changed

7 files changed

+24
-14
lines changed

app/src/main/java/cloud/pablos/overload/ui/screens/category/CategoryScreenDeleteCategoryDialog.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ fun CategoryScreenDeleteCategoryDialog(
5252
text = {
5353
Column {
5454
Text(
55-
text = "Are you sure you want to delete" + " " + category.name + "?",
55+
text =
56+
stringResource(
57+
R.string.delete_category_warning,
58+
category.name,
59+
),
5660
textAlign = TextAlign.Center,
5761
modifier = Modifier.fillMaxWidth(),
5862
overflow = TextOverflow.Ellipsis,

app/src/main/java/cloud/pablos/overload/ui/tabs/configurations/ConfigurationsTab.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ fun ConfigurationsTab(
244244
ConfigurationsTabItem(
245245
title = stringResource(id = R.string.sourcecode),
246246
description = stringResource(id = R.string.sourcecode_descr),
247-
link = "https://codeberg.org/pabloscloud/Overload".toUri(),
247+
link = "https://github.com/pabloscloud/Overload".toUri(),
248248
icon = Icons.Rounded.Code,
249249
)
250250
}
@@ -254,7 +254,7 @@ fun ConfigurationsTab(
254254
ConfigurationsTabItem(
255255
title = stringResource(id = R.string.issue_reports),
256256
description = stringResource(id = R.string.issue_reports_descr),
257-
link = "https://codeberg.org/pabloscloud/Overload/issues".toUri(),
257+
link = "https://github.com/pabloscloud/Overload/issues".toUri(),
258258
icon = Icons.Rounded.EmojiNature,
259259
)
260260
}
@@ -264,7 +264,7 @@ fun ConfigurationsTab(
264264
ConfigurationsTabItem(
265265
title = stringResource(id = R.string.translate),
266266
description = stringResource(id = R.string.translate_descr),
267-
link = "https://translate.codeberg.org/engage/overload".toUri(),
267+
link = "https://crowdin.com/project/overload".toUri(),
268268
icon = Icons.Rounded.Translate,
269269
)
270270
}
@@ -274,7 +274,7 @@ fun ConfigurationsTab(
274274
ConfigurationsTabItem(
275275
title = stringResource(id = R.string.license),
276276
description = stringResource(id = R.string.license_descr),
277-
link = "https://codeberg.org/pabloscloud/Overload/raw/branch/main/LICENSE".toUri(),
277+
link = "https://github.com/pabloscloud/Overload/blob/main/LICENSE".toUri(),
278278
icon = Icons.Rounded.Copyright,
279279
)
280280
}

app/src/main/java/cloud/pablos/overload/ui/tabs/home/HomeTabDeletePauseDialog.kt

+11-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import cloud.pablos.overload.ui.views.TextView
3333
@Composable
3434
fun HomeTabDeletePauseDialog(onClose: () -> Unit) {
3535
val context = LocalContext.current
36-
val learnMoreLink = "https://codeberg.org/pabloscloud/Overload#delete-pause".toUri()
36+
val learnMoreLink = "https://github.com/pabloscloud/Overload?tab=readme-ov-file#why-cant-i-delete-an-ongoing-pause".toUri()
3737

3838
AlertDialog(
3939
onDismissRequest = onClose,
@@ -65,7 +65,11 @@ fun HomeTabDeletePauseDialog(onClose: () -> Unit) {
6565
val openLinkStr = stringResource(id = R.string.open_link_with)
6666
ClickableText(
6767
text = AnnotatedString(stringResource(id = R.string.learn_more)),
68-
style = MaterialTheme.typography.bodyMedium.copy(color = MaterialTheme.colorScheme.primary, textAlign = TextAlign.Center),
68+
style =
69+
MaterialTheme.typography.bodyMedium.copy(
70+
color = MaterialTheme.colorScheme.primary,
71+
textAlign = TextAlign.Center,
72+
),
6973
onClick = {
7074
val intent = Intent(Intent.ACTION_VIEW, learnMoreLink)
7175
val chooserIntent = Intent.createChooser(intent, openLinkStr)
@@ -79,10 +83,11 @@ fun HomeTabDeletePauseDialog(onClose: () -> Unit) {
7983
Button(
8084
onClick = { onClose() },
8185
modifier = Modifier.fillMaxWidth(),
82-
colors = ButtonDefaults.buttonColors(
83-
containerColor = MaterialTheme.colorScheme.primaryContainer,
84-
contentColor = MaterialTheme.colorScheme.onPrimaryContainer,
85-
),
86+
colors =
87+
ButtonDefaults.buttonColors(
88+
containerColor = MaterialTheme.colorScheme.primaryContainer,
89+
contentColor = MaterialTheme.colorScheme.onPrimaryContainer,
90+
),
8691
) {
8792
TextView(stringResource(id = R.string.close))
8893
}

app/src/main/java/cloud/pablos/overload/ui/views/AdjustEndDialog.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fun AdjustEndDialog(
6161
val foregroundColor = decideForeground(backgroundColor)
6262

6363
val context = LocalContext.current
64-
val learnMoreLink = "https://codeberg.org/pabloscloud/Overload#spread-acorss-days".toUri()
64+
val learnMoreLink = "https://github.com/pabloscloud/Overload?tab=readme-ov-file#why-does-the-app-annoy-me-with-a-popup-to-adjust-the-end".toUri()
6565

6666
val itemsNotToday = getItemsPastDays(categoryState, itemState)
6767
val isOngoingNotToday = itemsNotToday.isNotEmpty() && itemsNotToday.any { it.ongoing }

app/src/main/java/cloud/pablos/overload/ui/views/ForgotToStopDialog.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fun ForgotToStopDialog(
4242
val foregroundColor = decideForeground(backgroundColor)
4343

4444
val context = LocalContext.current
45-
val learnMoreLink = "https://codeberg.org/pabloscloud/Overload#spread-acorss-days".toUri()
45+
val learnMoreLink = "https://github.com/pabloscloud/Overload?tab=readme-ov-file#why-does-the-app-annoy-me-with-a-popup-to-adjust-the-end".toUri()
4646

4747
AlertDialog(
4848
onDismissRequest = onClose,

app/src/main/java/cloud/pablos/overload/ui/views/SpreadAcrossDaysDialog.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fun SpreadAcrossDaysDialog(
5353
val foregroundColor = decideForeground(backgroundColor)
5454

5555
val context = LocalContext.current
56-
val learnMoreLink = "https://codeberg.org/pabloscloud/Overload#spread-acorss-days".toUri()
56+
val learnMoreLink = "https://github.com/pabloscloud/Overload?tab=readme-ov-file#why-does-the-app-annoy-me-with-a-popup-to-adjust-the-end".toUri()
5757

5858
val date = LocalDate.now()
5959

app/src/main/res/values/strings.xml

+1
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,5 @@ Thanks for patience!</string>
135135
<string name="talback_pause_ongoing">Ongoing pause since %s</string>
136136
<string name="add_category">add category</string>
137137
<string name="switch_category">Switch Category</string>
138+
<string name="delete_category_warning">Are you sure you want to delete %s?</string>
138139
</resources>

0 commit comments

Comments
 (0)