飞行模式开启时关闭收音机

--- a/mediatek/source/packages/FMRadio/src/com/mediatek/FMRadio/FMRadioService.java
+++ b/mediatek/source/packages/FMRadio/src/com/mediatek/FMRadio/FMRadioService.java
@@ -203,7 +203,11 @@ public class FMRadioService extends Service implements FMRecorder.onRecorderStat
             if (action.equals(ACTION_TOFMSERVICE_POWERDOWN)
                     || ACTION_FROMATVSERVICE_POWERUP.equals(action)
                     || (action.equals(MESSAGE_FROMSOUNDER_TOFM_POWERDOWN) 
-                            && CMDPAUSE.equals(command))) {
+                        && CMDPAUSE.equals(command))
     
+                   || (action.equals(Intent.ACTION_AIRPLANE_MODE_CHANGED)&&intent.getBooleanExtra("state", false))

+                  ) {
                 mIsResumeAfterCall = false;
 
                 if (FeatureOption.MTK_FM_RECORDING_SUPPORT && mFMRecorder != null) {


你可能感兴趣的:(飞行模式开启时关闭收音机)