mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Bug fixes
This commit is contained in:
parent
73c6c48f42
commit
265a872b08
1 changed files with 4 additions and 2 deletions
|
@ -102,9 +102,11 @@ public static Set<String> getFeatures(Class<?> clazz) {
|
|||
|
||||
public static void getFeatures(Class<?> clazz, Set<String> list) {
|
||||
Features features = clazz.getAnnotation(Features.class);
|
||||
if (features != null) {
|
||||
for (Feature feature : features.value()) {
|
||||
list.add(feature.value());
|
||||
}
|
||||
}
|
||||
Class<?> superClass = clazz.getSuperclass();
|
||||
if (superClass != null && superClass != Object.class) {
|
||||
getFeatures(superClass, list);
|
||||
|
|
Loading…
Reference in a new issue