handling deprecated method setBackgroundDrawable