1
0
mirror of https://github.com/danog/termux-api.git synced 2025-01-22 21:31:10 +01:00

MediaPlayerAPI: eliminate pointless toUpperCase()

Fixes #154.
This commit is contained in:
Tom Yan 2018-04-04 18:54:21 +08:00 committed by Fredrik Fornwall
parent 9c104aac36
commit 7bdd53008a

View File

@ -125,16 +125,16 @@ public class MediaPlayerAPI {
}
protected static MediaCommandHandler getMediaCommandHandler(final String command) {
switch (command == null ? "" : command.toUpperCase()) {
case "INFO":
switch (command == null ? "" : command) {
case "info":
return infoHandler;
case "PLAY":
case "play":
return playHandler;
case "PAUSE":
case "pause":
return pauseHandler;
case "RESUME":
case "resume":
return resumeHandler;
case "STOP":
case "stop":
return stopHandler;
default:
return new MediaCommandHandler() {