Fix NewApi error for View.setBackground()

Android Lint should have reported it.
See https://code.google.com/p/android/issues/detail?id=56427.

Also simplify codepath for another NewApi call, by grouping both inside
a dedicated class.