aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-01-19 12:14:43 +0000
committerKenny Root <kenny@the-b.org>2009-01-19 12:14:43 +0000
commit2e5aef0992bb4b8051e9d54b44079cbbffb798e5 (patch)
treecb8450408cf229ff341acc99b06e966c7a914f2b
parent8974d9186eb4ba20603a52b7978314f2e8cfabb3 (diff)
downloadconnectbot-2e5aef0992bb4b8051e9d54b44079cbbffb798e5.tar.gz
connectbot-2e5aef0992bb4b8051e9d54b44079cbbffb798e5.tar.bz2
connectbot-2e5aef0992bb4b8051e9d54b44079cbbffb798e5.zip
Hack to disable volume key beeps.
-rw-r--r--src/org/connectbot/ConsoleActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/connectbot/ConsoleActivity.java b/src/org/connectbot/ConsoleActivity.java
index 4775c7b..a142537 100644
--- a/src/org/connectbot/ConsoleActivity.java
+++ b/src/org/connectbot/ConsoleActivity.java
@@ -33,6 +33,7 @@ import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
+import android.media.AudioManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
@@ -308,6 +309,8 @@ public class ConsoleActivity extends Activity {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
+ // TODO find proper way to disable volume key beep if it exists.
+ setVolumeControlStream(AudioManager.STREAM_MUSIC);
PowerManager manager = (PowerManager)getSystemService(Context.POWER_SERVICE);
wakelock = manager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, TAG);