Loading src/com/android/server/telecom/CallsManager.java +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Looper; import android.os.SystemProperties; import android.os.Trace; import android.provider.CallLog.Calls; import android.provider.Settings; import android.telecom.CallAudioState; import android.telecom.Conference; import android.telecom.Connection; Loading Loading @@ -1092,6 +1093,13 @@ public class CallsManager extends Call.ListenerBase implements VideoProviderProx * Returns true if telecom supports adding another top-level call. */ boolean canAddCall() { boolean isDeviceProvisioned = Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0) != 0; if (!isDeviceProvisioned) { Log.d(TAG, "Device not provisioned, canAddCall is false."); return false; } if (getFirstCallWithState(OUTGOING_CALL_STATES) != null) { return false; } Loading Loading
src/com/android/server/telecom/CallsManager.java +8 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Looper; import android.os.SystemProperties; import android.os.Trace; import android.provider.CallLog.Calls; import android.provider.Settings; import android.telecom.CallAudioState; import android.telecom.Conference; import android.telecom.Connection; Loading Loading @@ -1092,6 +1093,13 @@ public class CallsManager extends Call.ListenerBase implements VideoProviderProx * Returns true if telecom supports adding another top-level call. */ boolean canAddCall() { boolean isDeviceProvisioned = Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0) != 0; if (!isDeviceProvisioned) { Log.d(TAG, "Device not provisioned, canAddCall is false."); return false; } if (getFirstCallWithState(OUTGOING_CALL_STATES) != null) { return false; } Loading