public void update(CommandResult result) {
   if (!MyPreferences.getBoolean(MyPreferences.KEY_NOTIFICATIONS_ENABLED, false)) {
     return;
   }
   notifyForOneType(TimelineType.HOME, result.getMessagesAdded());
   notifyForOneType(TimelineType.MENTIONS, result.getMentionsAdded());
   notifyForOneType(TimelineType.DIRECT, result.getDirectedAdded());
 }
Example #2
0
 public static String toString(CommandResult commandResult) {
   return commandResult == null ? "(result is null)" : commandResult.toString();
 }