Fix compile error on JDK 1.7.

JDK 1.7 gives an error like this:
warning: [static] static method should be qualified by type name

R=pbos@webrtc.org
TBR=henrike@webrtc.org
BUG=

Review URL: https://webrtc-codereview.appspot.com/29399004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7133 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2014-09-10 12:35:59 +00:00
parent 0fa04755af
commit 49fa212bcd

View File

@ -44,7 +44,7 @@ public class OpenSlDemo extends Activity implements View.OnClickListener {
runner = new OpenSlRunner(); runner = new OpenSlRunner();
// Native code calls back into JVM to be able to configure OpenSL to low // Native code calls back into JVM to be able to configure OpenSL to low
// latency mode. Provide the context needed to do this. // latency mode. Provide the context needed to do this.
runner.RegisterApplicationContext(getApplicationContext()); OpenSlRunner.RegisterApplicationContext(getApplicationContext());
} }
// Called before activity is destroyed. // Called before activity is destroyed.
@ -56,11 +56,11 @@ public class OpenSlDemo extends Activity implements View.OnClickListener {
private void startOrStop() { private void startOrStop() {
if (isRunning) { if (isRunning) {
runner.Stop(); OpenSlRunner.Stop();
btStartStopCall.setText(R.string.startCall); btStartStopCall.setText(R.string.startCall);
isRunning = false; isRunning = false;
} else if (!isRunning){ } else if (!isRunning){
runner.Start(); OpenSlRunner.Start();
btStartStopCall.setText(R.string.stopCall); btStartStopCall.setText(R.string.stopCall);
isRunning = true; isRunning = true;
} }