Skip to content

Commit b4cef73

Browse files
committed
[Mono.Android] Fix Android.Telecom.InCallService.SetAudioRoute enumification.
1 parent 899d781 commit b4cef73

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using Android.Content;
3+
4+
namespace Android.Telecom
5+
{
6+
public abstract partial class InCallService : Android.App.Service
7+
{
8+
#if ANDROID_23
9+
[Obsolete ("Incorrect enum parameter, use the overload that takes a CallAudioRoute paramter instead.")]
10+
[global::System.Runtime.Versioning.SupportedOSPlatformAttribute ("android23.0")]
11+
public void SetAudioRoute ([global::Android.Runtime.GeneratedEnum] Android.Telecom.VideoQuality route)
12+
{
13+
SetAudioRoute ((CallAudioRoute) route);
14+
}
15+
#endif
16+
}
17+
}
18+
19+

src/Mono.Android/Mono.Android.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
<Compile Include="Android.Icu\DateIntervalFormat.cs" />
127127
<Compile Include="Android.Runtime\DynamicMethodNameCounter.cs" />
128128
<Compile Include="Android.Runtime\IJavaObjectValueMarshaler.cs" />
129+
<Compile Include="Android.Telecom\InCallService.cs" />
129130
</ItemGroup>
130131

131132
<Import Project="..\Xamarin.Android.NamingCustomAttributes\Xamarin.Android.NamingCustomAttributes.projitems" Label="Shared" Condition="Exists('..\Xamarin.Android.NamingCustomAttributes\Xamarin.Android.NamingCustomAttributes.projitems')" />

src/Mono.Android/methodmap.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@
18791879
23, android.telecom, InCallService.VideoCall.Callback, onCallSessionEvent, event, Android.Telecom.VideoSessionEvent
18801880
23, android.telecom, InCallService.VideoCall.Callback, onSessionModifyResponseReceived, status, Android.Telecom.ModifyRequestResult
18811881
23, android.telecom, InCallService.VideoCall.Callback, onVideoQualityChanged, videoQuality, Android.Telecom.VideoQuality
1882-
23, android.telecom, InCallService, setAudioRoute, route, Android.Telecom.VideoQuality
1882+
23, android.telecom, InCallService, setAudioRoute, route, Android.Telecom.CallAudioRoute
18831883
23, android.telecom, PhoneAccount, hasCapabilities, capability, Android.Telecom.ConnectionCapability
18841884
23, android.telecom, PhoneAccount, getCapabilities, return, Android.Telecom.ConnectionCapability
18851885
23, android.telecom, RemoteConference, getConnectionCapabilities, return, Android.Telecom.ConnectionCapability

tests/api-compatibility/acceptable-breakages-vReference-net8.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,3 +3079,4 @@ CannotRemoveAttribute : Attribute 'System.ObsoleteAttribute' exists on 'Org.Apac
30793079
CannotRemoveAttribute : Attribute 'System.ObsoleteAttribute' exists on 'Org.Apache.Http.Conn.Ssl.SSLSocketFactory..ctor(Java.Security.KeyStore, System.String)' in the contract but not the implementation.
30803080
CannotRemoveAttribute : Attribute 'System.ObsoleteAttribute' exists on 'Org.Apache.Http.Conn.Ssl.SSLSocketFactory..ctor(Java.Security.KeyStore, System.String, Java.Security.KeyStore)' in the contract but not the implementation.
30813081
CannotRemoveAttribute : Attribute 'System.ObsoleteAttribute' exists on 'Org.Apache.Http.Conn.Ssl.SSLSocketFactory.CreateSocket(Java.Net.Socket, System.String, System.Int32, System.Boolean)' in the contract but not the implementation.
3082+
CannotRemoveAttribute : Attribute 'Android.Runtime.RegisterAttribute' exists on 'Android.Telecom.InCallService.SetAudioRoute(Android.Telecom.VideoQuality)' in the contract but not the implementation.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Compat issues with assembly Mono.Android:
2+
CannotRemoveAttribute : Attribute 'Android.Runtime.RegisterAttribute' exists on 'Android.Telecom.InCallService.SetAudioRoute(Android.Telecom.VideoQuality)' in the contract but not the implementation.

0 commit comments

Comments
 (0)