(View view)
| 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 | } |
no test coverage detected