Created
July 9, 2019 11:05
-
-
Save ShinichiroFunatsu/14611e6c6ca198d593bf1b3f06436551 to your computer and use it in GitHub Desktop.
This file contains 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
private fun getRootWindowPackageName(): String? = | |
InstrumentationRegistry | |
.getInstrumentation() | |
.uiAutomation | |
.rootInActiveWindow | |
?.packageName | |
?.toString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment