diff options
Diffstat (limited to 'java/com/android/incallui/ringtone')
-rw-r--r-- | java/com/android/incallui/ringtone/DialerRingtoneManager.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/java/com/android/incallui/ringtone/DialerRingtoneManager.java b/java/com/android/incallui/ringtone/DialerRingtoneManager.java index 49badf575..b8a3071cc 100644 --- a/java/com/android/incallui/ringtone/DialerRingtoneManager.java +++ b/java/com/android/incallui/ringtone/DialerRingtoneManager.java @@ -18,8 +18,6 @@ package com.android.incallui.ringtone; import android.content.ContentResolver; import android.net.Uri; -import android.os.Build.VERSION; -import android.os.Build.VERSION_CODES; import android.provider.Settings; import android.support.annotation.NonNull; import android.support.annotation.Nullable; @@ -92,11 +90,9 @@ public class DialerRingtoneManager { } private boolean isDialerRingingEnabled() { - boolean enabledFlag = - isDialerRingingEnabledForTesting != null - ? isDialerRingingEnabledForTesting - : IS_DIALER_RINGING_ENABLED; - return VERSION.SDK_INT >= VERSION_CODES.N && enabledFlag; + return isDialerRingingEnabledForTesting != null + ? isDialerRingingEnabledForTesting + : IS_DIALER_RINGING_ENABLED; } /** |