Example #1
0
 public void process(String val) {
   int fromIndex;
   if ((fromIndex = val.indexOf(Const.xml_notedate)) != -1) {
     String notedate =
         val.substring(
             fromIndex + Const.xml_notedate_length,
             val.indexOf(Const.xml_notedate_end, fromIndex));
     Date date = new Date(HttpDateParser.parse(notedate));
     SettingsBean _instance = SettingsBean.getSettings();
     if (date.getTime() / 1000 > _instance.getNoteLoaded()) {
       _instance.notifications = true;
       synchronized (UiApplication.getEventLock()) {
         // notifications.setLabel((_instance.notifications?"*":"")+Const.notification);
       }
       if (initialcheck) {
         initialcheck = false;
         synchronized (UiApplication.getEventLock()) {
           screen = new DetailScreen(this, Const.NOTIFICATIONSCREEN);
           UiApplication.getUiApplication().pushScreen(screen);
         }
       }
     }
   }
 }