Skip to content

Commit

Permalink
Disabled sound in dialer for emulators
Browse files Browse the repository at this point in the history
  • Loading branch information
UriahShaulMandel committed Aug 25, 2019
1 parent 048269f commit a95bb85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void onCreate(@Nullable final Bundle savedInstanceState) {
return;
setContentView(R.layout.dialer);
contentResolver = getContentResolver();
playDialSounds = BPrefs.get(this).getBoolean(BPrefs.DIALER_SOUNDS_KEY, BPrefs.DIALER_SOUNDS_DEFAULT_VALUE);
playDialSounds = BPrefs.get(this).getBoolean(BPrefs.DIALER_SOUNDS_KEY, BPrefs.DIALER_SOUNDS_DEFAULT_VALUE) && !testing;
if (playDialSounds)
dtmfGenerator = new ToneGenerator(STREAM_SYSTEM, TONE_VOLUME);
attachXml();
Expand Down

0 comments on commit a95bb85

Please sign in to comment.