Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 088b0e71 authored by twyen's avatar twyen Committed by Eric Erfanian
Browse files

Remove Assert(isAtLeastO) in LegacyVoicemailNotificaitonReceiver

OC preview devices are hitting the assert and skewing crash rate numbers.

Bug: 62338925
Test: LegacyVoicemailNotificaitonReceiverTest
PiperOrigin-RevId: 161438516
Change-Id: Ib533947d2cd9e9a87ffd9fb629f09f877f683026
parent 9ef68bd5
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -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));