Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Theme used: N/A
Devices/Android versions reproduced on: <21
This method is using Context#getDrawable(int) which is 21+, and I assume should be using ContextCompat#getDrawable(Context, int)
Ultimately, this yields the following exception on versions of Android prior to API level 21:
03-01 15:44:03.237 E/AndroidRuntime(32158): FATAL EXCEPTION: main
03-01 15:44:03.237 E/AndroidRuntime(32158): java.lang.NoSuchMethodError: android.content.Context.getDrawable
03-01 15:44:03.237 E/AndroidRuntime(32158): at android.support.v7.widget.AppCompatSpinner.setPopupBackgroundResource(AppCompatSpinner.java:302)
------
Workaround is to use the setPopupBackgroundDrawable(Drawable) method with one's own call to ContextCompat#getDrawable(Context, int)