Skip to content

Instantly share code, notes, and snippets.

@peterclemenko
Created July 17, 2015 21:12
Show Gist options
  • Save peterclemenko/396f30260facfb4fe7f1 to your computer and use it in GitHub Desktop.
Save peterclemenko/396f30260facfb4fe7f1 to your computer and use it in GitHub Desktop.
private void updateMarkupViber(long newLastId, boolean serialize) {
if (Cfg.DEBUG) {
Check.log(TAG + " (updateMarkupViber), +lastId: " + newLastId);
}
try {
markup.writeMarkupSerializable(newLastId);
Long verify = markup.unserialize(new Long(0));
if (!lastViberReadDate.equals(verify)) {
if (Cfg.DEBUG) {
Check.log(TAG + " (updateMarkupViber) Error: failed");
}
}
} catch (IOException e) {
if (Cfg.DEBUG) {
Check.log(TAG + " (updateMarkupViber) Error: " + e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment