refactoring static method
This commit is contained in:
parent
f16c024525
commit
2c69762f7f
1 changed files with 0 additions and 8 deletions
|
@ -549,14 +549,6 @@ public class ApplicationMode {
|
|||
return false;
|
||||
}
|
||||
|
||||
public static int getIconResFromName(Context app, String variableName, String packageName) {
|
||||
try {
|
||||
return app.getResources().getIdentifier(variableName, "drawable", packageName);
|
||||
} catch (Exception e) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@DrawableRes public int getIconRes(Context app) {
|
||||
try {
|
||||
return app.getResources().getIdentifier(iconName, "drawable", app.getPackageName());
|
||||
|
|
Loading…
Reference in a new issue