online fixes
This commit is contained in:
@@ -4,6 +4,7 @@ import static android.widget.Toast.LENGTH_SHORT;
|
||||
import static android.widget.Toast.makeText;
|
||||
import static ru.vtosters.lite.utils.Globals.getIdentifier;
|
||||
import static ru.vtosters.lite.utils.Globals.getString;
|
||||
import static ru.vtosters.lite.utils.Preferences.getDateFormat;
|
||||
import static ru.vtosters.lite.utils.Proxy.getApiCom;
|
||||
import static ru.vtosters.lite.utils.Proxy.proxy;
|
||||
|
||||
@@ -39,7 +40,7 @@ public class FoafBase {
|
||||
if (!matcher.find()) {
|
||||
return 0;
|
||||
}
|
||||
return (int) (new SimpleDateFormat("yyyy-MM-dd'T'kk:mm:ss", Locale.getDefault()).parse(matcher.group(1)).getTime() / 1000);
|
||||
return (int) (new SimpleDateFormat(getDateFormat(), Locale.getDefault()).parse(matcher.group(1)).getTime() / 1000);
|
||||
}
|
||||
|
||||
public static long GetLastSeenLong(int i) throws ParseException, IOException {
|
||||
|
||||
@@ -16,7 +16,7 @@ import static ru.vtosters.lite.utils.Globals.registerActivities;
|
||||
import static ru.vtosters.lite.utils.Newsfeed.setupFilters;
|
||||
import static ru.vtosters.lite.utils.OpusLoader.LoadLibrary;
|
||||
import static ru.vtosters.lite.utils.Proxy.setProxy;
|
||||
import static ru.vtosters.lite.utils.SignatureChecker.*;
|
||||
import static ru.vtosters.lite.utils.SignatureChecker.validateAppSignature;
|
||||
import static ru.vtosters.lite.utils.Themes.systemThemeChanger;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
@@ -409,7 +409,6 @@ public class Preferences {
|
||||
return hasPrometheus(getUserId());
|
||||
}
|
||||
|
||||
|
||||
public static String getLocale() {
|
||||
String string = getPrefsValue("lang_value");
|
||||
|
||||
@@ -435,6 +434,14 @@ public class Preferences {
|
||||
}
|
||||
}
|
||||
|
||||
public static String nullOnline() {
|
||||
return getString("onlineNull");
|
||||
}
|
||||
|
||||
public static boolean isOnlineNull(int status) {
|
||||
return status == 0;
|
||||
}
|
||||
|
||||
@SuppressLint("SimpleDateFormat")
|
||||
public static SimpleDateFormat setDateFormat() {
|
||||
return new SimpleDateFormat(getDateFormat());
|
||||
|
||||
Reference in New Issue
Block a user