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

Commit 749d0688 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6511846 from 32a52986 to sc-release

Change-Id: Iab2958467cd8cb1bba79ab385aecf8c080ca385c
parents 1004d4d6 32a52986
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@

  <uses-sdk
    android:minSdkVersion="24"
    android:targetSdkVersion="28"/>
    android:targetSdkVersion="29"/>

  <uses-permission android:name="android.permission.CALL_PHONE"/>
  <uses-permission android:name="android.permission.READ_CONTACTS"/>
+1 −1
Original line number Diff line number Diff line
@@ -16,6 +16,6 @@
  -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.android.assets.quantum">
  <uses-sdk android:targetSdkVersion="28" />
  <uses-sdk android:targetSdkVersion="29" />
  <application/>
</manifest>
+11 −6
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */
package com.android.contacts.common.compat.telecom;

import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.support.annotation.Nullable;
import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;
@@ -50,13 +52,16 @@ public class TelecomManagerCompat {
    return null;
  }

  /**
   * Handovers are supported from Android O-DR onward. Since there is no API bump from O to O-DR, we
   * need to use reflection to check the existence of TelecomManager.EXTRA_IS_HANDOVER in
   * http://cs/android/frameworks/base/telecomm/java/android/telecom/TelecomManager.java.
   */
  /** Returns true if the Android version supports Handover. */
  public static boolean supportsHandover() {
    //
    // Starting with Android P, handover is supported via a public API.
    if (VERSION.SDK_INT >= VERSION_CODES.P) {
      return true;
    }
    // Handovers are supported from Android O-DR onward. Since there is no API
    // bump from O to O-DR, we need to use reflection to check the existence
    // of TelecomManager.EXTRA_IS_HANDOVER in
    // http://cs/android/frameworks/base/telecomm/java/android/telecom/TelecomManager.java.
    try {
      Field field = TelecomManager.class.getDeclaredField("EXTRA_IS_HANDOVER");
      return "android.telecom.extra.IS_HANDOVER".equals(field.get(null /* obj (static field) */));
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@

  <uses-sdk
    android:minSdkVersion="24"
    android:targetSdkVersion="28"/>
    android:targetSdkVersion="29"/>

  <application>

+1 −1
Original line number Diff line number Diff line
@@ -17,6 +17,6 @@

  <uses-sdk
      android:minSdkVersion="24"
      android:targetSdkVersion="28"/>
      android:targetSdkVersion="29"/>

</manifest>
Loading