Fixes + Added comments sorting

This commit is contained in:
gdlbo
2022-04-24 17:43:02 +03:00
parent 6d68a77e42
commit 341eb37ff4
8 changed files with 53 additions and 6 deletions
@@ -277,6 +277,20 @@ public class Prefs {
return string.equals("amoled") ? "1" : "0";
}
public static String getCommentsSort(String def) {
String string = Helper.GetPreferences().getString("commentssort", "");
if (string.isEmpty()) {
return def;
}
if (string.equals("new")) {
return "desc";
}
if (string.equals("old")) {
return "asc";
}
return def;
}
public static String getMeToken() {
return Helper.GetPreferences().getString("me_token", "");
}