MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / getColor

Method getColor

src/com/cloudream/ishow/util/Compatibility.java:19–27  ·  view source on GitHub ↗
(Context context, int id)

Source from the content-addressed store, hash-verified

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}

Callers 2

onProgressChangedMethod · 0.95
onClickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected