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;
}
}
private static final int TYPE\_COUNT = Type.values().length;
在 Idea 中试一下不就知道了