public static Set<String> getAllTitles(Type type) {
Set<String> result = new LinkedHashSet<>(sOnline[type.ordinal()].keySet());
result.addAll(sLocal[type.ordinal()].keySet());
return result;
}
public enum Type {
INSTALLER(R.string.install_update, R.string.framework_install, R.string.framework_install_recovery),
UNINSTALLER(R.string.uninstall, R.string.uninstall, R.string.framework_uninstall_recovery);
public final int title;
public final int text_flash;
public final int text_flash_recovery;
Type(@StringRes int title, @StringRes int text_flash, @StringRes int text_flash_recovery) {
this.title = title;
this.text_flash = text_flash;
this.text_flash_recovery = text_flash_recovery;
}