private static void resetLock(android.text.Spannable content, object what) { int current = content.getSpanFlags(what); if (current == LOCKED) { content.removeSpan(what); } }
private static void adjust(android.text.Spannable content, object what) { int current = content.getSpanFlags(what); if (current == PRESSED) { content.setSpan(what, 0, 0, USED); } else { if (current == RELEASED) { content.removeSpan(what); } } }