make service items in drawer be dynamicly generated

This commit is contained in:
Christian Schabesberger 2018-03-30 18:41:11 +02:00
parent c8a9ad45c9
commit 4628494e7b
3 changed files with 18 additions and 5 deletions

View file

@ -109,4 +109,11 @@ public class ServiceHelper {
return TimeUnit.MILLISECONDS.convert(1, TimeUnit.HOURS);
}
}
public static boolean isBeta(final StreamingService s) {
switch(s.getServiceInfo().getName()) {
case "YouTube": return false;
default: return true;
}
}
}