-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCallerNameDontAbbr_latonly_3E0.pbp
53 lines (46 loc) · 1.14 KB
/
CallerNameDontAbbr_latonly_3E0.pbp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
; This patch reverts Pebble's behaviour
; to abbreviate all words but the first
; in calling person's name.
;
; There are 2 variants: either consider all names as "one-word"
; or consider them as "phone numbers".
; Second variant is unstable and causes strange behaviour,
; so it is disabled by default.
;
; There is a catch: buffer size is limited with 32 bytes;
; as a result, if name is longer than that then it will be cut.
; And if you use multi-byte characters (Cyrillic, Hebrew, Greek...)
; then you may get a half-char as a result.
#ifndef names_as_phone_numbers
; this is a caller_window_format_name func
2d e9 f8 43 0c 46 20 21 81 46 17 46 ?4
06 46 @ 48 b9 {
; was:
; PUSH {R3-R9,LR}
; MOV R4, R1
; MOVS R1, ' '
; MOV R9, R0
; MOV R7, R2
; BL strchr
; MOV R6, R0
;@here-we-go
; CBNZ R0, do_the_black_deed
NOP
}
#else
; this is in call_window_update proc, when we consider which method to use
00 2d 79 d0 28 46 ?4
3c 4c 21 68 @ 60 b1 {
; was:
; CMP R5, 0
; BEQ ret
; MOV R0, R5
; BL is_valid_phone_number
; LDR R4, =call_window_data
; LDR R1, [R4]
;@here-we-go
; CBZ R0, format_as_name
; (do format as phone number)
NOP
}
#endif