Commit 64da8d8
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 efe17a0 commit 64da8d8
File tree
1 file changed
+10
-0
lines changed- app/src/main/java/org/akanework/gramophone/ui/components
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
436 | 446 | | |
437 | 447 | | |
438 | 448 | | |
| |||
0 commit comments