In a certain scenario, app crashes on release mode. This is because of locale-aware operations for toUpperCase and toLowerCase. If passed string arguments are used for key instead of display, it doesn't need to be converted to locale-aware strings. So, to obtain correct results for locale insensitive strings, we should use toUpperCase(Locale.ROOT) and toLowerCase(Locale.ROOT) which is described on [android doc](https://developer.android.com/reference/java/lang/String#toUpperCase()).
To Reproduce
Set device locale to tr-TR (Turkish)
Use following code snippet for custom login button callback
🐛 Bug Report
In a certain scenario, app crashes on release mode. This is because of locale-aware operations for
toUpperCase
andtoLowerCase
. If passed string arguments are used for key instead of display, it doesn't need to be converted to locale-aware strings. So, to obtain correct results for locale insensitive strings, we should usetoUpperCase(Locale.ROOT)
andtoLowerCase(Locale.ROOT)
which is described on [android doc](https://developer.android.com/reference/java/lang/String#toUpperCase()).To Reproduce
Expected Behavior
App should move to next step which means opening Facebook app or web.
Code Example
Environment