|
21 | 21 |
|
22 | 22 | import android.content.DialogInterface; |
23 | 23 | import android.content.Intent; |
| 24 | +import android.graphics.Color; |
24 | 25 | import android.graphics.drawable.Drawable; |
25 | 26 | import android.os.Bundle; |
26 | 27 | import android.support.annotation.Nullable; |
@@ -75,7 +76,7 @@ public int getSpanCount() { |
75 | 76 | @Override |
76 | 77 | protected Drawable getTopFabDrawable() { |
77 | 78 | Drawable drawable = DrawableCompat.wrap(ContextCompat.getDrawable(getActivity(), R.drawable.ic_add)); |
78 | | - DrawableCompat.setTint(drawable, ContextCompat.getColor(getActivity(), R.color.white)); |
| 79 | + DrawableCompat.setTint(drawable, Color.WHITE); |
79 | 80 | return drawable; |
80 | 81 | } |
81 | 82 |
|
@@ -287,7 +288,7 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, |
287 | 288 | new ContextThemeWrapper(getActivity(), |
288 | 289 | R.style.Base_Widget_AppCompat_CompoundButton_CheckBox_Custom), null, 0); |
289 | 290 | checkBox.setText(options[i]); |
290 | | - checkBox.setTextColor(ContextCompat.getColor(getActivity(), R.color.white)); |
| 291 | + checkBox.setTextColor(Color.WHITE); |
291 | 292 | checkBox.setChecked(i == mRecoveryOption); |
292 | 293 | checkBox.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, |
293 | 294 | ViewGroup.LayoutParams.WRAP_CONTENT)); |
|
0 commit comments