Created
April 19, 2023 05:36
-
-
Save kartikarora/5614015591e0759a21b6992593252580 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get GrammaticalInflectionManager system service | |
val grammaticalInflectionManager = context.getSystemService(GrammaticalInflectionManager::class.java) | |
/** | |
* Use service to get inflection of the app | |
* Will be one of | |
* Configuration.GRAMMATICAL_GENDER_NEUTRAL | |
* Configuration.GRAMMATICAL_GENDER_FEMININE | |
* Configuration.GRAMMATICAL_GENDER_MASCULINE | |
*/ | |
grammaticalInflectionManager.getApplicationGrammaticalGender() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment