Android添加书签(二)(12)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:12 点击:次
while (processed < mCount) {
for (int i = 0; i < mCount; i++) {
Bundle thisRow = getRow(i, true);
Long thisCreateTime = thisRow
.getLong(Browser.BookmarkColumns.CREATED);
if (thisCreateTime == null || thisCreateTime < 900) {
// get createTime of row above and subtract 1000;
long createTime = (mCount - i) * 1000;
if (i > 0) {
Bundle prevRow = getRow(i, true);
Long prevCreateTime = prevRow
.getLong(Browser.BookmarkColumns.CREATED);
if (prevCreateTime != null && prevCreateTime > 1001) {
createTime = prevCreateTime - 1000;
}
}
thisRow.putLong(Browser.BookmarkColumns.CREATED, createTime);
updateRow(thisRow, true);
break;// underlying dataset has updated so quit the loop and
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>