Make vars static

This commit is contained in:
M M Arif 2023-04-09 15:22:35 +05:00
parent 3cd17008a4
commit 1e3ce4cbde
1 changed files with 3 additions and 3 deletions

View File

@ -9,11 +9,11 @@ import org.mian.gitnex.R;
*/
public class LanguageColor {
private static int color = R.color.default_lang_color;
private static final Map<String, Integer> colors = new HashMap<>();
public static int languageColor(String key) {
int color = R.color.default_lang_color;
Map<String, Integer> colors = new HashMap<>();
colors.put("ASP.NET", R.color.default_lang_color);
colors.put("ATS", R.color.ats);
colors.put("ActionScript", R.color.action_script);