Support driver country code display

This commit is contained in:
Mygod
2022-07-12 21:03:47 -04:00
parent bf856d77d5
commit f4e5e2f834
6 changed files with 20 additions and 0 deletions

View File

@@ -21,6 +21,9 @@ object UnblockCentral {
*/
private val init by lazy { if (needInit) UnblockHelper(app.deviceStorage) }
@RequiresApi(33)
fun getCountryCode(clazz: Class<*>) = init.let { clazz.getDeclaredMethod("getCountryCode") }
@RequiresApi(31)
fun setUserConfiguration(clazz: Class<*>) = init.let {
clazz.getDeclaredMethod("setUserConfiguration", Boolean::class.java)