if(oldPainter instanceof SingleColorBackPainter && !background.equals("singleColor")) {
resetBackground();
}
if (background.equals("timeOfDay")) {
mBackgroundPainter = new TimeOfDayBackPainter();
} else if (background.equals("singleColor")) {
mBackgroundPainter = new SingleColorBackPainter();
} else if (background.equals("oneImage")) {
mBackgroundPainter = new OneImageBackPainter();
} else { // timeBlock