fix(AudioModeModule): disable ConnectionService

It's causing the microphone to not work in the audio only mode. On some
devices occasionally and consistently on the others (Samasung).
This commit is contained in:
paweldomas 2019-03-21 13:22:54 -05:00
parent e384c98330
commit 0698e591e3
1 changed files with 4 additions and 1 deletions

View File

@ -161,7 +161,10 @@ class AudioModeModule extends ReactContextBaseJavaModule
* Whether or not the ConnectionService is used for selecting audio devices.
*/
static boolean useConnectionService() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
// This is a hotfix for a release. Use feature flags added on top of the
// new SDK API instead.
// return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
return false;
}
/**