Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private void saveNewMsgCountToPositionsCache() {
   final TimeLinePosition position = positionCache.get(currentGroupId);
   position.newMsgIds = newMsgTipBar.getValues();
 }