fixed 2fa, fixed some issues with proxy, deleted xtrafrancyz proxy, fixed compiling, some other fixes
This commit is contained in:
@@ -94,7 +94,6 @@ public class TelegramStickersDbHelper extends SQLiteOpenHelper {
|
||||
e.printStackTrace();
|
||||
max = 0;
|
||||
}
|
||||
Log.d("sova", "Found last index: " + max);
|
||||
return max + 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ package ru.vtosters.lite.dnr;
|
||||
|
||||
import ru.vtosters.lite.utils.Prefs;
|
||||
|
||||
// Настройки Донецкой Народной Республики
|
||||
public class DNRPrefs {
|
||||
public static boolean getStoriesRead() {
|
||||
return Prefs.BooleanFalse("read_s");
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package ru.vtosters.lite.foaf;
|
||||
|
||||
import static ru.vtosters.lite.utils.Proxy.getApiCom;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
@@ -51,7 +53,7 @@ public class FoafBase {
|
||||
StringBuilder sb;
|
||||
if (Prefs.proxy()) {
|
||||
sb = new StringBuilder();
|
||||
str = "https://vk-api-proxy.xtrafrancyz.net/_/vk.com/foaf.php?id=";
|
||||
str = "https://" + getApiCom() + "/_/vk.com/foaf.php?id=";
|
||||
} else {
|
||||
sb = new StringBuilder();
|
||||
str = "https://vk.com/foaf.php?id=";
|
||||
|
||||
@@ -623,7 +623,7 @@ public class Prefs {
|
||||
}
|
||||
|
||||
public static boolean proxy() {
|
||||
return ru.vtosters.lite.utils.Helper.GetPreferences().getString("proxy", "").equals("xtrafrancyz");
|
||||
return ru.vtosters.lite.utils.Helper.GetPreferences().getString("proxy", "").equals("apiproxy");
|
||||
}
|
||||
|
||||
public static boolean authors_rec(String str) {
|
||||
|
||||
@@ -43,64 +43,45 @@ public class Proxy {
|
||||
}
|
||||
|
||||
public static String getApiCom() {
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "api.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-api-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String getAwayPhpCom() {
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "m.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxyapi", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-api-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String getOauthCom() {
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxyoauth", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "oauth.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxyoauth", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-oauth-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String getStaticCom() {
|
||||
if (!ru.vtosters.lite.utils.Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return "static.vk.com";
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (!string.isEmpty()) {
|
||||
return string;
|
||||
}
|
||||
return "vk-static-proxy.xtrafrancyz.net";
|
||||
return string;
|
||||
}
|
||||
|
||||
public static String staticFix(String str) {
|
||||
String str2;
|
||||
String str3;
|
||||
if (!Prefs.proxy()) {
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (!Prefs.proxy() & string.isEmpty()) {
|
||||
return str;
|
||||
}
|
||||
String string = Helper.GetPreferences().getString("proxystatic", "");
|
||||
if (string.isEmpty()) {
|
||||
str3 = "static.vk.com";
|
||||
str2 = "vk-static-proxy.xtrafrancyz.net";
|
||||
} else {
|
||||
str3 = "static.vk.com";
|
||||
str2 = string;
|
||||
}
|
||||
return str.replace(str2, str3);
|
||||
str2 = string;
|
||||
return str.replace(str2, "static.vk.com");
|
||||
}
|
||||
|
||||
public static String GetConnector(String str) {
|
||||
|
||||
Reference in New Issue
Block a user