mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
use API for coloring
This commit is contained in:
parent
999ad9f355
commit
f85640527e
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue