예제 #1
0
 private void savePositionToDB() {
   TimeLinePosition position = positionCache.get(currentGroupId);
   if (position == null) {
     savePositionToPositionsCache();
     position = positionCache.get(currentGroupId);
   }
   position.newMsgIds = newMsgTipBar.getValues();
   final String groupId = currentGroupId;
   FriendsTimeLineDBTask.asyncUpdatePosition(
       position, GlobalContext.getInstance().getCurrentAccountId(), groupId);
 }
예제 #2
0
 private void saveNewMsgCountToPositionsCache() {
   final TimeLinePosition position = positionCache.get(currentGroupId);
   position.newMsgIds = newMsgTipBar.getValues();
 }