Commit c8cf18a
committed
feat: Optimized media output panel availability checks
Adjusted media output panel availability check logic based on Android version.
- For Android 14 and above, assume the panel is always available.
- For Android 12 and 13, check if the system UI can handle the media output dialog intent.
- For Android 11 and below, check if the Settings app can handle the media output panel intent.
If the panel is unavailable, hide the media control buttons.
Signed-off-by: ghhccghk <2137610394@qq.com>1 parent 93445e9 commit c8cf18a
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
415 | 425 | | |
416 | 426 | | |
417 | 427 | | |
| |||
0 commit comments