mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-07-13 11:54:44 -04:00
app: use isARepeat method instead of ARepeat prop
The property was only introduced in 10.10, and doesn't offer us anything more than what the method gives us. Fixes golang/go#11827. Change-Id: I5a9f9b068b9f18acc85a68a37dae11f19df686a1 Reviewed-on: https://go-review.googlesource.com/12552 Reviewed-by: Andrey Petrov <shazow@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
@ -189,7 +189,7 @@ uint64 threadID() {
|
||||
uint32_t rune = (uint32_t)buf[0]<<0 | (uint32_t)buf[1]<<8 | (uint32_t)buf[2]<<16 | (uint32_t)buf[3]<<24;
|
||||
|
||||
uint8_t direction;
|
||||
if (theEvent.ARepeat) {
|
||||
if ([theEvent isARepeat]) {
|
||||
direction = 0;
|
||||
} else if (theEvent.type == NSKeyDown) {
|
||||
direction = 1;
|
||||
|
Reference in New Issue
Block a user