(Context context, int id)
| 17 | } |
| 18 | |
| 19 | @SuppressWarnings("deprecation") |
| 20 | public static int getColor(Context context, int id) |
| 21 | { |
| 22 | // Context.getColor() added in API level 23 |
| 23 | if(android.os.Build.VERSION.SDK_INT >= 23) |
| 24 | return context.getColor(id/*, context.getTheme()*/); |
| 25 | else |
| 26 | return context.getResources().getColor(id); |
| 27 | } |
| 28 | } |
no outgoing calls
no test coverage detected