Repository navigation
Commit 446fcd6
committed
fix(android): Elevated watches the clipboard only while a device takes the phone's copies (#655)
The helper registered a clipboard listener for the shell at start and read
every copy, whether or not any device takes the phone's clipboard. On a
Xiaomi with HyperOS, paste then came back empty in every app until
Elevated was turned off. The app now tells the helper (W 0 / W 1) whether
any paired device has Share my clipboard on, at each connection and when
that changes, and the helper adds or removes its listener to match.
Signed-off-by: Bee <302257494+thtbee@users.noreply.github.com>1 parent 705535e commit 446fcd6
4 files changed
Lines changed: 61 additions & 1 deletion
File tree
- android/app/src/main/kotlin/app/nectarlink/android
- core
- elevated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
597 | 602 | | |
598 | 603 | | |
599 | 604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
459 | 469 | | |
460 | 470 | | |
461 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
878 | 884 | | |
879 | 885 | | |
880 | 886 | | |
| 887 | + | |
881 | 888 | | |
882 | 889 | | |
883 | 890 | | |
| |||
1460 | 1467 | | |
1461 | 1468 | | |
1462 | 1469 | | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1463 | 1482 | | |
1464 | 1483 | | |
1465 | 1484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
236 | 256 | | |
237 | 257 | | |
238 | 258 | | |
| |||
318 | 338 | | |
319 | 339 | | |
320 | 340 | | |
321 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
322 | 347 | | |
323 | 348 | | |
324 | 349 | | |
| |||
929 | 954 | | |
930 | 955 | | |
931 | 956 | | |
| 957 | + | |
932 | 958 | | |
933 | 959 | | |
934 | 960 | | |
| |||
0 commit comments