use API for coloring

This commit is contained in:
Andy Scherzinger 2015-12-29 11:02:45 +01:00 committed by David A. Velasco
parent 999ad9f355
commit f85640527e

View file

@ -290,8 +290,6 @@ public class DisplayUtils {
*/
public static void colorSnackbar(Context context, Snackbar snackbar) {
// Changing action button text color
View sbView = snackbar.getView();
TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_action);
textView.setTextColor(ContextCompat.getColor(context, R.color.white));
snackbar.setActionTextColor(ContextCompat.getColor(context, R.color.white));
}
}