Skip to content

Commit

Permalink
Fix dialog button text
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 27, 2023
1 parent 06bf314 commit 6ad2bd4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ fun ReportProblemNoEmailDialog(onDismiss: () -> Unit, onConfirm: () -> Unit) {
contentColor = Color.White
),
onClick = onConfirm,
) {
Text(text = stringResource(id = R.string.send_anyway), fontSize = 18.sp)
}
text = stringResource(id = R.string.send_anyway)
)
},
confirmButton = {
ActionButton(
Expand All @@ -77,9 +76,8 @@ fun ReportProblemNoEmailDialog(onDismiss: () -> Unit, onConfirm: () -> Unit) {
contentColor = Color.White
),
onClick = { onDismiss() },
) {
Text(text = stringResource(id = R.string.back), fontSize = 18.sp)
}
text = stringResource(id = R.string.back)
)
},
containerColor = colorResource(id = R.color.darkBlue)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ fun ReportProblemSuccessDialog(email: String?, onConfirm: () -> Unit) {
contentColor = Color.White
),
onClick = { onConfirm() },
) {
Text(text = stringResource(id = R.string.dismiss), fontSize = 18.sp)
}
text = stringResource(id = R.string.dismiss)
)
},
containerColor = colorResource(id = R.color.darkBlue)
)
Expand Down Expand Up @@ -199,9 +198,8 @@ fun ReportProblemErrorDialog(onDismiss: () -> Unit, retry: () -> Unit) {
contentColor = Color.White
),
onClick = onDismiss,
) {
Text(text = stringResource(id = R.string.edit_message), fontSize = 18.sp)
}
text = stringResource(id = R.string.edit_message)
)
},
confirmButton = {
ActionButton(
Expand All @@ -212,9 +210,8 @@ fun ReportProblemErrorDialog(onDismiss: () -> Unit, retry: () -> Unit) {
contentColor = Color.White
),
onClick = retry,
) {
Text(text = stringResource(id = R.string.try_again), fontSize = 18.sp)
}
text = stringResource(id = R.string.try_again)
)
},
containerColor = colorResource(id = R.color.darkBlue)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ class MullvadProblemReport(context: Context, val dispatcher: CoroutineDispatcher

val sentSuccessfully =
withContext(dispatcher) {
sendProblemReport(
userReport.email ?: "",
userReport.message,
logsPath.absolutePath,
cacheDirectory.absolutePath
)
true
// sendProblemReport(
// userReport.email ?: "",
// userReport.message,
// logsPath.absolutePath,
// cacheDirectory.absolutePath
// )
}

return if (sentSuccessfully) {
Expand Down

0 comments on commit 6ad2bd4

Please sign in to comment.