diff options
Diffstat (limited to 'java/com/android/voicemail/impl')
-rw-r--r-- | java/com/android/voicemail/impl/transcribe/TranscriptionConfigProvider.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/com/android/voicemail/impl/transcribe/TranscriptionConfigProvider.java b/java/com/android/voicemail/impl/transcribe/TranscriptionConfigProvider.java index 83f04dab8..4bb9a261b 100644 --- a/java/com/android/voicemail/impl/transcribe/TranscriptionConfigProvider.java +++ b/java/com/android/voicemail/impl/transcribe/TranscriptionConfigProvider.java @@ -16,6 +16,7 @@ package com.android.voicemail.impl.transcribe; import android.content.Context; +import android.os.Build; import com.android.dialer.configprovider.ConfigProviderBindings; /** Provides configuration values needed to connect to the transcription server. */ @@ -27,7 +28,8 @@ public class TranscriptionConfigProvider { } public boolean isVoicemailTranscriptionEnabled() { - return ConfigProviderBindings.get(context).getBoolean("voicemail_transcription_enabled", false); + return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O + && ConfigProviderBindings.get(context).getBoolean("voicemail_transcription_enabled", false); } public String getServerAddress() { |