Fixed crash + fixed msg cache
This commit is contained in:
@@ -131,6 +131,11 @@ public class VTVerifications {
|
||||
return Base64.encodeToString(str.getBytes(), 1);
|
||||
}
|
||||
|
||||
|
||||
public static boolean vtverif() {
|
||||
return getBoolValue("VT_Verification", true);
|
||||
}
|
||||
|
||||
public static boolean isVerified(JSONObject jSONObject) {
|
||||
if (jSONObject.optInt("verified", 0) == 1) {
|
||||
return true;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ru.vtosters.lite.utils;
|
||||
|
||||
import static ru.vtosters.lite.utils.Preferences.preferences;
|
||||
import static ru.vtosters.lite.utils.Preferences.getLocale;
|
||||
import static ru.vtosters.lite.utils.Preferences.preferences;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Application;
|
||||
|
||||
@@ -92,10 +92,6 @@
|
||||
|
||||
iput-object p2, p0, Lcom/vk/im/engine/commands/dialogs/DialogsHistoryGetArgs;->c:Lcom/vk/im/engine/models/dialogs/DialogsFilter;
|
||||
|
||||
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->getMsgCount()I
|
||||
|
||||
move-result p3
|
||||
|
||||
iput p3, p0, Lcom/vk/im/engine/commands/dialogs/DialogsHistoryGetArgs;->d:I
|
||||
|
||||
iput-object p4, p0, Lcom/vk/im/engine/commands/dialogs/DialogsHistoryGetArgs;->e:Lcom/vk/im/engine/models/Source;
|
||||
|
||||
@@ -1324,10 +1324,8 @@
|
||||
|
||||
if-eqz p2, :cond_1
|
||||
|
||||
const-string p2, "VT_Verification"
|
||||
|
||||
.line 181
|
||||
invoke-static {p2}, Lru/vtosters/lite/utils/Preferences;->BooleanTrue(Ljava/lang/String;)Z
|
||||
invoke-static {}, Lru/vtosters/lite/f0x1d/VTVerifications;->vtverif()Z
|
||||
|
||||
move-result p2
|
||||
|
||||
@@ -1354,10 +1352,8 @@
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
const-string p2, "VT_Verification"
|
||||
|
||||
.line 181
|
||||
invoke-static {p2}, Lru/vtosters/lite/utils/Preferences;->BooleanTrue(Ljava/lang/String;)Z
|
||||
invoke-static {}, Lru/vtosters/lite/f0x1d/VTVerifications;->vtverif()Z
|
||||
|
||||
move-result p2
|
||||
|
||||
|
||||
+2
-6
@@ -73,10 +73,8 @@
|
||||
|
||||
if-eqz p2, :cond_1
|
||||
|
||||
const-string p2, "VT_Verification"
|
||||
|
||||
.line 181
|
||||
invoke-static {p2}, Lru/vtosters/lite/utils/Preferences;->BooleanTrue(Ljava/lang/String;)Z
|
||||
invoke-static {}, Lru/vtosters/lite/f0x1d/VTVerifications;->vtverif()Z
|
||||
|
||||
move-result p2
|
||||
|
||||
@@ -104,10 +102,8 @@
|
||||
|
||||
if-eqz p2, :cond_2
|
||||
|
||||
const-string p2, "VT_Verification"
|
||||
|
||||
.line 181
|
||||
invoke-static {p2}, Lru/vtosters/lite/utils/Preferences;->BooleanTrue(Ljava/lang/String;)Z
|
||||
invoke-static {}, Lru/vtosters/lite/f0x1d/VTVerifications;->vtverif()Z
|
||||
|
||||
move-result p2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user