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
class TalkBackFacade @Inject constructor(private val contextWeakReference: WeakReference<Context>) { | |
fun isTalkBackEnabled() = Settings.Secure.getString( | |
contextWeakReference.get()?.contentResolver, | |
Settings.Secure.ACCESSIBILITY_ENABLED | |
)?.toInt()?.toBoolean() | |
?: false | |
fun enableTalkBack() = changeAccessibilityServicesState( | |
true, |
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
apply plugin: 'com.github.dcendents.android-maven' | |
apply plugin: 'com.jfrog.bintray' | |
// load properties | |
Properties properties = new Properties() | |
File localPropertiesFile = project.file("local.properties") | |
if(localPropertiesFile.exists()){ | |
properties.load(localPropertiesFile.newDataInputStream()) | |
} | |
else { |
NewerOlder