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

Method reset

mod/app/src/main/java/bttv/SplitChat.java:132–146  ·  view source on GitHub ↗
(View view)

Source from the content-addressed store, hash-verified

130 }
131
132 private static void reset(View view) {
133 Drawable background = view.getBackground();
134 if (background == null) {
135 return;
136 }
137 if (!(background instanceof ColorDrawable)) {
138 return;
139 }
140
141 ColorDrawable colorDrawable = (ColorDrawable) background;
142 if (colorDrawable.getColor() == ResUtil.getColorValue("material_grey_900")
143 || colorDrawable.getColor() == ResUtil.getColorValue("material_grey_300")) {
144 view.setBackground(null);
145 }
146 }
147
148}

Callers 1

setBackgroundColorMethod · 0.95

Calls 1

getColorValueMethod · 0.95

Tested by

no test coverage detected