OSDN Git Service

fix issue 2934
authorroot <pmerle@kph.uni-mainz.de>
Mon, 28 Sep 2009 00:25:02 +0000 (02:25 +0200)
committerJean-Baptiste Queru <jbq@google.com>
Wed, 4 Nov 2009 20:12:07 +0000 (12:12 -0800)
Restoring old logic which was OK
Somebody changed logic in DTMFTwelveKeyDialer and TwelveKeyDialer but TwelveKeyDialer was correct

src/com/android/contacts/TwelveKeyDialer.java

index 33f261e..159b294 100644 (file)
@@ -207,7 +207,7 @@ public class TwelveKeyDialer extends Activity implements View.OnClickListener,
         synchronized (mToneGeneratorLock) {
             if (mToneGenerator == null) {
                 try {
-                    mToneGenerator = new ToneGenerator(AudioManager.STREAM_VOICE_CALL, 
+                    mToneGenerator = new ToneGenerator(AudioManager.STREAM_RING,
                             TONE_RELATIVE_VOLUME);
                 } catch (RuntimeException e) {
                     Log.w(TAG, "Exception caught while creating local tone generator: " + e);
@@ -381,7 +381,7 @@ public class TwelveKeyDialer extends Activity implements View.OnClickListener,
         synchronized(mToneGeneratorLock) {
             if (mToneGenerator == null) {
                 try {
-                    mToneGenerator = new ToneGenerator(AudioManager.STREAM_VOICE_CALL, 
+                    mToneGenerator = new ToneGenerator(AudioManager.STREAM_RING,
                             TONE_RELATIVE_VOLUME);
                 } catch (RuntimeException e) {
                     Log.w(TAG, "Exception caught while creating local tone generator: " + e);