refactoring static method

This commit is contained in:
madwasp79 2019-06-03 10:59:06 +03:00
parent 2c69762f7f
commit d0eff33cc2

View file

@ -163,7 +163,7 @@ public class AppModeDialog {
AndroidUtils.setBackground(ctx, selection, nightMode, R.drawable.btn_border_pressed_trans_light, R.drawable.btn_border_pressed_trans_dark);
}
} else {
iv.setImageDrawable(ctx.getUIUtilities().getThemedIcon(ApplicationMode.getIconResFromName(ctx, mode.getIconName(), ctx.getPackageName())));
iv.setImageDrawable(ctx.getUIUtilities().getThemedIcon(mode.getIconRes(ctx)));
}
iv.setContentDescription(String.format("%s %s", mode.toHumanString(ctx), ctx.getString(R.string.item_unchecked)));
}