From fc3f1431b22e0b718fff3d2221a31f9404206602 Mon Sep 17 00:00:00 2001 From: Lorin Beer Date: Sun, 17 Jun 2012 22:56:22 -0700 Subject: [PATCH] made internal status static variables final as well, specifically so that they can be used in switch statements --- framework/src/org/apache/cordova/AudioPlayer.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/src/org/apache/cordova/AudioPlayer.java b/framework/src/org/apache/cordova/AudioPlayer.java index 7fc1b938..b1701d74 100755 --- a/framework/src/org/apache/cordova/AudioPlayer.java +++ b/framework/src/org/apache/cordova/AudioPlayer.java @@ -45,11 +45,11 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On private static final String LOG_TAG = "AudioPlayer"; // AudioPlayer states - public static int MEDIA_NONE = 0; - public static int MEDIA_STARTING = 1; - public static int MEDIA_RUNNING = 2; - public static int MEDIA_PAUSED = 3; - public static int MEDIA_STOPPED = 4; + public static final int MEDIA_NONE = 0; + public static final int MEDIA_STARTING = 1; + public static final int MEDIA_RUNNING = 2; + public static final int MEDIA_PAUSED = 3; + public static final int MEDIA_STOPPED = 4; // AudioPlayer message ids private static int MEDIA_STATE = 1;