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());
|
||||
|
||||
@@ -4482,6 +4482,7 @@
|
||||
<string name="newversion">Новая версия</string>
|
||||
<string name="changelog">Список изменений</string>
|
||||
<string name="downloaderr">Ошибка загрузки файла</string>
|
||||
<string name="onlineNull">Онлайн скрыт</string>
|
||||
|
||||
<string name="empty_text" />
|
||||
</resources>
|
||||
|
||||
@@ -4616,6 +4616,8 @@ May look like a fake leaving the online"</string>
|
||||
<string name="newversion">New version</string>
|
||||
<string name="changelog">Changelog</string>
|
||||
<string name="downloaderr">Download error</string>
|
||||
<string name="onlineNull">Online is hidden</string>
|
||||
|
||||
|
||||
<item type="string" name="APKTOOL_DUMMY_10be" />
|
||||
<item type="string" name="APKTOOL_DUMMY_10bf" />
|
||||
|
||||
@@ -216,7 +216,9 @@
|
||||
|
||||
if-gtz v4, :cond_1
|
||||
|
||||
const-string p1, ""
|
||||
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->nullOnline()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
|
||||
@@ -2224,13 +2224,13 @@
|
||||
const-string v3, "last_seen"
|
||||
|
||||
.line 299
|
||||
invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
||||
invoke-virtual {v1, v3}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
const-string v5, "time"
|
||||
|
||||
invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
|
||||
invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
|
||||
|
||||
move-result v3
|
||||
|
||||
@@ -2239,7 +2239,7 @@
|
||||
const-string v3, "last_seen"
|
||||
|
||||
.line 300
|
||||
invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
||||
invoke-virtual {v1, v3}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user