Skip to content

Commit 0a53d47

Browse files
Make popup CTA buttons white colored for disclaimer and wake word dialogs
Co-authored-by: Ayush0Chaudhary <95746190+Ayush0Chaudhary@users.noreply.github.com>
1 parent 873f51c commit 0a53d47

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/src/main/java/com/blurr/voice/MainActivity.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,18 @@ class MainActivity : AppCompatActivity() {
362362
unregisterReceiver(wakeWordFailureReceiver)
363363
}
364364
private fun showDisclaimerDialog() {
365-
AlertDialog.Builder(this)
365+
val dialog = AlertDialog.Builder(this)
366366
.setTitle("Disclaimer")
367367
.setMessage("Panda is an experimental AI assistant and is still in development. It may not always be accurate or perform as expected. It does small task better. Your understanding is appreciated!")
368368
.setPositiveButton("Okay") { dialog, _ ->
369369
dialog.dismiss()
370370
}
371371
.show()
372+
373+
// Set the button text color to white
374+
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(
375+
ContextCompat.getColor(this, R.color.white)
376+
)
372377
}
373378

374379

@@ -407,6 +412,11 @@ class MainActivity : AppCompatActivity() {
407412
}
408413

409414
alertDialog.show()
415+
416+
// Set the button text color to white
417+
alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setTextColor(
418+
ContextCompat.getColor(this, R.color.white)
419+
)
410420
}
411421
private fun updateTaskCounter() {
412422
lifecycleScope.launch {

0 commit comments

Comments
 (0)