updated Online Formatter

This commit is contained in:
gdlbo
2022-06-25 20:13:58 +03:00
parent 65af8e24c1
commit 996760489f
7 changed files with 16 additions and 2 deletions
@@ -1,7 +1,9 @@
package ru.vtosters.lite.utils;
import static ru.vtosters.lite.utils.Globals.getString;
public class OnlineFormatter {
public static String getOnline(int appid){
public static String getAppName(int appid){
switch (appid) {
case 2274003:
return "VK for Android";
@@ -80,4 +82,12 @@ public class OnlineFormatter {
return null;
}
}
public static String getOnline(int appid){
var appname = getAppName(appid);
if (appname == null) return null;
return getString("custom_online") + " " + appname;
}
}