diff options
author | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-04-18 12:36:13 +0530 |
---|---|---|
committer | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-04-18 12:36:13 +0530 |
commit | fd50fd447f34e8310c88f70e3686b8bfffa293b4 (patch) | |
tree | 73351e8e1885f862ea942227d0dcfc77051430ab /fmapp2/src/com/caf/fmradio/FMRadio.java | |
parent | 2a73d76fb46dbef2e5b447f2bd4ea1be30797737 (diff) | |
download | android_hardware_qcom_fm-fd50fd447f34e8310c88f70e3686b8bfffa293b4.tar.gz android_hardware_qcom_fm-fd50fd447f34e8310c88f70e3686b8bfffa293b4.tar.bz2 android_hardware_qcom_fm-fd50fd447f34e8310c88f70e3686b8bfffa293b4.zip |
FM: Fix the audio noise issue
- When wired headset removed while FM is playing,
audio will route to speaker and it will be noise.
- Listen the ACTION_AUDIO_BECOMING_NOISY and disable the FM.
Change-Id: I3c6f53993cfaecf0459c655268a37cf8c3e91b43
CRs-Fixed: 643575
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadio.java')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadio.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java index 9d48888..5f4b6dd 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java @@ -2046,11 +2046,9 @@ public class FMRadio extends Activity String display = ""; if (station != null) { display = station.getName(); - Log.e(LOGTAG, "Venkat:before" + display ); if (display.length() > 6) - display = display.substring(0,6)+"..."; - Log.e(LOGTAG, "Venkat: after" + display ); - mPresetButtons[buttonIndex].setEllipsize(TextUtils.TruncateAt.END); + display = display.substring(0,6)+"..."; + mPresetButtons[buttonIndex].setEllipsize(TextUtils.TruncateAt.END); mPresetButtons[buttonIndex].setText(display); mPresetButtons[buttonIndex].setTag(station); mPresetButtons[buttonIndex].setHeight(-1); |