Buggy code:
} else { newType = 1 ; checkFunctionTx . setText ( "粮安监测" ) ; sendMessageS ( FF_LIANGAN_CHECK_1 ) ; startCanshuActivity ( newType ) ; } } else if ( resourceId == ( id . point_check_menu ) ) { newType = 2 ; if ( app . isCheckIng ) { showToast ( "检测正在进行中，无法开启新检测" ) ; } else { checkFunctionTx . setText ( "粮安检测" ) ; sendMessageS ( FF_LIANGAN_CHECK_2 ) ; displayFragment ( true , "point_set" , null , new BaseFragmentListener ( ) { @ Override public void onCallBack ( Object object ) { if ( object instanceof TimeSetEntry ) { long today = System . currentTimeMillis ( ) ; SimpleDateFormat format = new SimpleDateFormat ( "yyyy-MM-dd" ) ; checkDetail . checkDate = format . format ( today ) ; checkDetail . checkType = 2 + "" ; TimeSetEntry entry = ( ( TimeSetEntry ) ( object ) ) ; checkMinuteValue = ( entry . checkTime ) * 10 ; paikongMinuteValue = ( entry . paikongTime ) * 10 ; wayCount = 0 ; app . oldCheckTime = checkMinuteValue ; app . oldPaikongTime = paikongMinuteValue ; if ( ( checkMinuteValue ) > 0 ) { float checkF = ( ( float ) ( checkMinuteValue ) ) // 10.0F ; updateCheckMinute ( ( checkF + "" ) ) ; } if ( ( paikongMinuteValue ) > 0 ) { float paikongF = ( ( float ) ( paikongMinuteValue ) ) // 10.0F ; updatePaikongMinute ( ( paikongF + "" ) ) ; } } } } ) ; } } else if ( resourceId == ( id . cangan_jiance_menu ) ) { newType = 3 ; if ( app . isCheckIng ) { showToast ( "检测正在进行中，无法开启新检测" ) ; } else { checkFunctionTx . setText ( "仓安监测" ) ; sendMessageS ( FF_CANGAN_CHECK ) ; displayFragment ( true , "point_set" , null , new BaseFragmentListener ( ) { @ Override public void onCallBack ( Object object ) { if ( object instanceof TimeSetEntry ) { long today = System . currentTimeMillis ( ) ; SimpleDateFormat format = new SimpleDateFormat ( "yyyy-MM-dd" ) ; checkDetail . checkDate = format . format ( today ) ; checkDetail . checkType = 3 + "" ; TimeSetEntry entry = ( ( TimeSetEntry ) ( object ) ) ; checkMinuteValue = ( entry . checkTime ) * 10 ; paikongMinuteValue = ( entry . paikongTime ) * 10 ; wayCount = 0 ; app . oldCheckTime = checkMinuteValue ; app . oldPaikongTime = paikongMinuteValue ; if ( ( checkMinuteValue ) > 0 ) { float checkF = ( ( float ) ( checkMinuteValue ) ) // 10.0F ; updateCheckMinute ( ( checkF + "" ) ) ; } if ( ( paikongMinuteValue ) > 0 ) { float paikongF = ( ( float ) ( paikongMinuteValue ) ) // 10.0F ; updatePaikongMinute ( ( paikongF + "" ) ) ; } } } } ) ; } } } else if ( type == 1 ) { if ( resourceId == ( id . liangan_jiance_menu ) ) { if ( app . isPause ) { showToast ( "检测正在进行中，无法开启新检测" ) ; } else { clearRightData ( ) ; checkState = 0 ; showToast ( "定时器开启" ) ; if ( ( checkDetail ) != null ) { checkDetail . pointList . clear ( ) ; } if ( ( alarmInfo ) == null ) { alarmInfo = new AlarmInfo ( ) ; } DataUtils . putPreferences ( "first_alarm_time" , alarmInfo . firstTimeN ) ; <START_BUG> DataUtils . putPreferences ( "interval" , alarmInfo . minuteN ) ; <END_BUG> if ( ( ( ( alarmInfo ) != null ) && ( ( alarmInfo . firstTimeN ) > 0L ) ) && ( ( alarmInfo . minuteN ) > 0 ) ) { app . alarmInfo = alarmInfo ; app . alarmInfo . checkN = DataUtils . getPreferences ( "check_time" , 0 ) ; app . alarmInfo . paikongN = DataUtils . getPreferences ( "paikong_time" , 0 ) ; setCheckinfo ( alarmInfo , 0 ) ; Log . d ( "zhao" , ( "start<seq2seq4repair_space>set<seq2seq4repair_space>alarm<seq2seq4repair_space>:<seq2seq4repair_space>" + ( alarmInfo . minuteN ) ) ) ; setAlarmCheck ( alarmInfo ) ; } } } else if ( resourceId == ( id . point_check_menu ) ) { if ( app . isPause ) { showToast ( "检测正在进行中，无法开启新检测" ) ; if ( app . isAreadyAlarm ) { } } else { clearRightData ( ) ; if ( ( checkDetail ) != null ) { checkDetail . pointList . clear ( ) ; } checkState = 1 ; sendMessageS ( CD_POINT_CHECK ) ; displayFragment ( true , "point_select" , null , new BaseFragmentListener ( ) { @ Override public void onCallBack ( Object object ) { if ( ( object != null ) && ( object instanceof String ) ) { String result = ( ( String ) ( object ) ) ; Log . d ( "zhao" , ( "result<seq2seq4repair_space>:<seq2seq4repair_space>" + result ) ) ; fillCheckWayList ( result ) ; if ( ( checkWayList . size ( ) ) == 0 ) { showToast ( "请选择检测通道" ) ; return ; } app . lastWay = checkWayList . get ( ( ( checkWayList . size ( ) ) - 1 ) ) ; if ( ( alarmInfo ) == null ) { alarmInfo = new AlarmInfo ( ) ; } long today = System . currentTimeMillis ( ) ; SimpleDateFormat format = new SimpleDateFormat ( "yyyy-MM-dd" ) ; checkDetail . checkDate = format . format ( today ) ; checkDetail . checkType = 2 + "" ; app . alarmInfo = alarmInfo ; app . alarmInfo . checkN = DataUtils . getPreferences ( "check_time" , 0 ) ; app . alarmInfo . paikongN = DataUtils . getPreferences ( "paikong_time" , 0 ) ; String wayN = checkWayList . get ( 0 ) ; int way = 0 ; if ( isNumber ( wayN ) ) { way = Integer . valueOf ( wayN ) ;

Fix:
DataUtils . putPreferences ( "interval_time" , alarmInfo . minuteN ) ;