MCPcopy Create free account
hub / github.com/bttv-android/bttv / shouldTintBG

Method shouldTintBG

mod/app/src/main/java/bttv/SplitChat.java:126–130  ·  view source on GitHub ↗
(int positionInAdapter)

Source from the content-addressed store, hash-verified

124 }
125
126 private static boolean shouldTintBG(int positionInAdapter) {
127 // see comment on totalRemovedMessages to see why we do this
128 int totalPosition = positionInAdapter + totalRemovedMessages;
129 return totalPosition % 2 == 1;
130 }
131
132 private static void reset(View view) {
133 Drawable background = view.getBackground();

Callers 1

setBackgroundColorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected