(int event)
| 1506 | } |
| 1507 | |
| 1508 | public void playNotify(int event) { |
| 1509 | if (!notifyReady(event)) { |
| 1510 | return; |
| 1511 | } |
| 1512 | //#if DEBUG |
| 1513 | System.out.println("event: "+event); |
| 1514 | //#endif |
| 1515 | AlertCustomize ac = AlertCustomize.getInstance(); |
| 1516 | |
| 1517 | int volume = ac.soundVol; |
| 1518 | int vibraLen = cf.vibraLen; |
| 1519 | String type, message; |
| 1520 | //boolean flashBackLight=ac.flashBackLight; |
| 1521 | |
| 1522 | switch (event) { |
| 1523 | case 0: //online |
| 1524 | case 1: //chat |
| 1525 | if (cf.notifySound) { |
| 1526 | message = ac.soundOnline; |
| 1527 | type = ac.soundOnlineType; |
| 1528 | } else { |
| 1529 | message = null; |
| 1530 | type = null; |
| 1531 | } |
| 1532 | vibraLen = 0; |
| 1533 | //flashBackLight=false; |
| 1534 | break; |
| 1535 | case 5: //offline |
| 1536 | message = ac.soundOffline; |
| 1537 | type = ac.soundOfflineType; |
| 1538 | vibraLen = 0; |
| 1539 | //flashBackLight=false; |
| 1540 | break; |
| 1541 | case SOUND_FOR_VIP: //VIP |
| 1542 | message = ac.soundVIP; |
| 1543 | type = ac.soundVIPType; |
| 1544 | break; |
| 1545 | case SOUND_MESSAGE: //message |
| 1546 | message = ac.messagesnd; |
| 1547 | type = ac.messageSndType; |
| 1548 | break; |
| 1549 | case SOUND_FOR_CONFERENCE: //conference |
| 1550 | message = ac.soundConference; |
| 1551 | type = ac.soundConferenceType; |
| 1552 | if (ac.vibrateOnlyHighlited) { |
| 1553 | vibraLen = 0; |
| 1554 | } |
| 1555 | break; |
| 1556 | case SOUND_FOR_ME: //message for you |
| 1557 | message = ac.soundForYou; |
| 1558 | type = ac.soundForYouType; |
| 1559 | break; |
| 1560 | case SOUND_CONNECTED: //startup |
| 1561 | message = ac.soundStartUp; |
| 1562 | type = ac.soundStartUpType; |
| 1563 | vibraLen = 0; |
| 1564 | //flashBackLight=false; |
| 1565 | break; |
no test coverage detected