瀏覽代碼

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 6 年之前
父節點
當前提交
19e8e8710a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java

+ 1
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java 查看文件

@@ -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);

Loading…
取消
儲存