mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
formatting
This commit is contained in:
parent
ad8086fab5
commit
381d1615b4
@ -70,12 +70,12 @@ public class AudioHandler extends Plugin {
|
|||||||
else if (action.equals("stopPlayingAudio")) {
|
else if (action.equals("stopPlayingAudio")) {
|
||||||
this.stopPlayingAudio(args.getString(0));
|
this.stopPlayingAudio(args.getString(0));
|
||||||
} else if (action.equals("setVolume")) {
|
} else if (action.equals("setVolume")) {
|
||||||
try {
|
try {
|
||||||
this.setVolume(args.getString(0), Float.parseFloat(args.getString(1)));
|
this.setVolume(args.getString(0), Float.parseFloat(args.getString(1)));
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
//no-op
|
//no-op
|
||||||
}
|
}
|
||||||
} else if (action.equals("getCurrentPositionAudio")) {
|
} else if (action.equals("getCurrentPositionAudio")) {
|
||||||
float f = this.getCurrentPositionAudio(args.getString(0));
|
float f = this.getCurrentPositionAudio(args.getString(0));
|
||||||
return new PluginResult(status, f);
|
return new PluginResult(status, f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user