Messaging: We don't need to check for verbose logging everywhere

We can just do this in the actual method

Change-Id: I80e89b0ab97926749851628b1bd34e8cd9dc82f2
This commit is contained in:
Michael W
2025-05-18 09:18:48 +00:00
parent 8613b6bcc8
commit c4bbba9441
39 changed files with 293 additions and 547 deletions
@@ -901,11 +901,9 @@ public class ConversationFragment extends Fragment implements ConversationDataLi
// Are we coming from a widget click where we're told to scroll to a particular item?
final int scrollToPos = getScrollToMessagePosition();
if (scrollToPos >= 0) {
if (LogUtil.isLoggable(LogUtil.BUGLE_TAG, LogUtil.VERBOSE)) {
LogUtil.v(LogUtil.BUGLE_TAG, "onConversationMessagesCursorUpdated " +
" scrollToPos: " + scrollToPos +
" cursorCount: " + cursor.getCount());
}
LogUtil.v(LogUtil.BUGLE_TAG, "onConversationMessagesCursorUpdated " +
" scrollToPos: " + scrollToPos +
" cursorCount: " + cursor.getCount());
scrollToPosition(scrollToPos, true /*smoothScroll*/);
clearScrollToMessagePosition();
}