OSDN Git Service

FIX 1839556 -- Silent mode not really silent
authorDavid Brown <dab@google.com>
Thu, 25 Jun 2009 23:19:19 +0000 (16:19 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Tue, 7 Jul 2009 22:37:59 +0000 (15:37 -0700)
commit22f615fdd2136d1d1da0be160a43bd1a07955869
tree4ee6952f15c6f44c31a7b5f22737239f37f99c9b
parent4bc8dd492a7ffca3a1167d2a204d39da4da512bb
FIX 1839556 -- Silent mode not really silent

Fix the dialer to not play touch tone sounds if the phone is in "silent mode".

Note we have to re-check for silent mode *every time* the user presses a
key, rather than just in onResume(), since the user can toggle silent mode
via ENDCALL-longpress (without actually leaving the current activity.)

TESTED:
  - "Audible touch tones" preference off: no tones
  - "Audible touch tones" preference on, silent mode off: tones play
  - "Audible touch tones" preference on, silent mode ON: no tones
  - Switch in and out of silent mode via ENDCALL-longpress, confirm change
    takes effect immediately.
src/com/android/contacts/TwelveKeyDialer.java