mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-04 11:13:36 +00:00
Try fix connection
This commit is contained in:
parent
1ebdde0cb4
commit
f15f5f10de
|
@ -3,8 +3,8 @@ import cn.hutool.core.util.RuntimeUtil
|
|||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
def verName = "7.6.0-rc06"
|
||||
def verCode = 200 + 3 * 18
|
||||
def verName = "7.6.0-rc07"
|
||||
def verCode = 200 + 3 * 19
|
||||
|
||||
if (System.getenv("DEBUG_BUILD") == "true") {
|
||||
verName += "-" + RuntimeUtil.execForStr("git log --pretty=format:'%h' -n 1)")
|
||||
|
|
|
@ -368,6 +368,18 @@ public class ConnectionsManager extends BaseController {
|
|||
|
||||
public void init(int version, int layer, int apiId, String deviceModel, String systemVersion, String appVersion, String langCode, String systemLangCode, String configPath, String logPath, String regId, String cFingerprint, int timezoneOffset, int userId, boolean enablePushConnection) {
|
||||
|
||||
String installer = "";
|
||||
try {
|
||||
installer = ApplicationLoader.applicationContext.getPackageManager().getInstallerPackageName(ApplicationLoader.applicationContext.getPackageName());
|
||||
} catch (Throwable ignore) {
|
||||
|
||||
}
|
||||
if (installer == null) {
|
||||
installer = "";
|
||||
}
|
||||
|
||||
native_init(currentAccount, version, layer, apiId, deviceModel, systemVersion, appVersion, langCode, systemLangCode, configPath, logPath, regId, cFingerprint, installer, timezoneOffset, userId, enablePushConnection, ApplicationLoader.isNetworkOnline(), ApplicationLoader.getCurrentNetworkType());
|
||||
|
||||
Utilities.stageQueue.postRunnable(() -> {
|
||||
|
||||
SharedConfig.loadProxyList();
|
||||
|
@ -379,17 +391,6 @@ public class ConnectionsManager extends BaseController {
|
|||
native_setProxySettings(currentAccount, SharedConfig.currentProxy.address, SharedConfig.currentProxy.port, SharedConfig.currentProxy.username, SharedConfig.currentProxy.password, SharedConfig.currentProxy.secret);
|
||||
}
|
||||
|
||||
String installer = "";
|
||||
try {
|
||||
installer = ApplicationLoader.applicationContext.getPackageManager().getInstallerPackageName(ApplicationLoader.applicationContext.getPackageName());
|
||||
} catch (Throwable ignore) {
|
||||
|
||||
}
|
||||
if (installer == null) {
|
||||
installer = "";
|
||||
}
|
||||
|
||||
native_init(currentAccount, version, layer, apiId, deviceModel, systemVersion, appVersion, langCode, systemLangCode, configPath, logPath, regId, cFingerprint, installer, timezoneOffset, userId, enablePushConnection, ApplicationLoader.isNetworkOnline(), ApplicationLoader.getCurrentNetworkType());
|
||||
checkConnection();
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user