Quellcode durchsuchen

fix(Android/ConnectionService): do not display the address

Turns out that on Samsung phones the calls placed with
the ConnectionService appear in the calls log as weird long numbers.
The system mangles the address we give it ("sip:meet.jit.si/something")
into this weird long number and the call to request.getAddress() returns
that. Turn off the presentation as neither this number nor our address
makes sense. This way the call appears as from "Unknown" caller in call
history which is still not perfect, but better than the random number.

Note that other phones will preserve the originally passed address value
(tested on One Plus 5).
master
paweldomas vor 6 Jahren
Ursprung
Commit
19e8e8710a

+ 1
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java Datei anzeigen

@@ -189,7 +189,7 @@ public class ConnectionService extends android.telecom.ConnectionService {
189 189
         connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED);
190 190
         connection.setAddress(
191 191
             request.getAddress(),
192
-            TelecomManager.PRESENTATION_ALLOWED);
192
+            TelecomManager.PRESENTATION_UNKNOWN);
193 193
         connection.setExtras(request.getExtras());
194 194
 
195 195
         connection.setAudioModeIsVoip(true);

Laden…
Abbrechen
Speichern