@Override public void scheduleForeground(Drawable foreground) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { super.setForeground(foreground); } }