Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35f1510a authored by Sanal Sundaran's avatar Sanal Sundaran
Browse files

packages/apps: Use NOTIFICATION STREAM for dialer tones

dialer app key tones now use STREAM_NOTIFICATION so that
in call volume changes don't affect key tone volume.

CRs-Fixed: 215386
parent 66344b13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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_NOTIFICATION,
                            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_NOTIFICATION,
                            TONE_RELATIVE_VOLUME);
                } catch (RuntimeException e) {
                    Log.w(TAG, "Exception caught while creating local tone generator: " + e);