diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-30 07:31:41 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-30 07:31:41 +0000 |
commit | fb4a3213222d7c472e6f32df1a82adfbd2b0b39a (patch) | |
tree | 978e817617700854b5e2ed6f166f883c3bf6ffe9 /java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java | |
parent | a5338d2259c6d85a34e3b0fddb26f1ffeb73a56a (diff) | |
parent | ff2ad7ffdba7c74077eae3016b32174f0f2dad30 (diff) | |
download | android_packages_apps_Dialer-fb4a3213222d7c472e6f32df1a82adfbd2b0b39a.tar.gz android_packages_apps_Dialer-fb4a3213222d7c472e6f32df1a82adfbd2b0b39a.tar.bz2 android_packages_apps_Dialer-fb4a3213222d7c472e6f32df1a82adfbd2b0b39a.zip |
release-request-c1e89bbc-a9dd-4c96-8532-caeb99fb86d6-for-git_oc-dr1-release-4229604 snap-temp-L39800000087367876
Change-Id: I0243bb362d0102b5bf1ca8a8ed978252b09e0055
Diffstat (limited to 'java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java')
-rw-r--r-- | java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java index b86ce8229..4100521ab 100644 --- a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java +++ b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java @@ -21,6 +21,7 @@ import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; +import android.os.Build; import android.os.Build.VERSION_CODES; import android.preference.PreferenceManager; import android.support.v4.os.BuildCompat; @@ -56,7 +57,17 @@ public class LegacyVoicemailNotificationReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { LogUtil.i( "LegacyVoicemailNotificationReceiver.onReceive", "received legacy voicemail notification"); - Assert.checkArgument(BuildCompat.isAtLeastO()); + if (!BuildCompat.isAtLeastO()) { + LogUtil.e( + "LegacyVoicemailNotificationReceiver.onReceive", + "SDK not finalized: SDK_INT=" + + Build.VERSION.SDK_INT + + ", PREVIEW_SDK_INT=" + + Build.VERSION.PREVIEW_SDK_INT + + ", RELEASE=" + + Build.VERSION.RELEASE); + return; + } PhoneAccountHandle phoneAccountHandle = Assert.isNotNull(intent.getParcelableExtra(TelephonyManager.EXTRA_PHONE_ACCOUNT_HANDLE)); |