Challenge: Customizing the Toast; Changes not reflected after saving and running app

Hello,

I changed my code for the “Customizing the Toast” challenge, saved, clean builds, and pressed the green run triangle at the top. Prior to the changes, when the app ran it would display “Correct” or “Incorrect” at the bottom.

Now, the app shows a toast with no wording inside and is still presented at the bottom of the screen. Attached is a picture of my code and the resulting actions performed by the app. Please help, thanks.

Not sure why the message isn’t populating. Maybe try retyping the makeText line.
But setGravity() is now a no op for text toasts as of Android 11, which I suppose makes this challenge obsolete. Maybe someone who knows more about Java or Android can comment further on this, but the documentation suggests using snackbar, which displays a message at the bottom of the screen and cannot be moved anywhere else, so it looks like Android will now just display text in one spot.