1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-14 08:29:49 +01:00

Fix open internal link

This commit is contained in:
世界 2021-03-20 12:40:33 +08:00
parent b21d0c7280
commit c483b0f616
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -518,7 +518,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
drawerLayoutContainer.closeDrawer(false);
} else if (view instanceof DrawerAddCell) {
int freeAccount;
for (int account = 0;; account++) {
for (int account = 0; ; account++) {
if (!SharedConfig.activeAccounts.contains(account)) {
freeAccount = account;
break;
@ -2120,8 +2120,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
if (message != null && message.startsWith("@")) {
message = " " + message;
}
// NekoX-TODO: Check Chnage
runLinkRequest(intentAccount[0], username, group, sticker, botUser, botChat, message, hasUrl, messageId, channelId, threadId, commentId, game, auth, lang, unsupportedUrl, code, login, wallPaper, theme, voicechat, 0);
runLinkRequest(intentAccount[0], username, group, sticker, botUser, botChat, message, hasUrl, messageId, channelId, threadId, commentId, game, auth, lang, unsupportedUrl, code, login, wallPaper, theme, voicechat, internal ? 3 : 0);
} else {
try (Cursor cursor = getContentResolver().query(intent.getData(), null, null, null, null)) {
if (cursor != null) {
@ -2767,7 +2766,6 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
if (account != intentAccount) {
switchToAccount(account, true);
}
// NekoX-TODO: Check Chnage
runLinkRequest(account, username, group, sticker, botUser, botChat, message, hasUrl, messageId, channelId, threadId, commentId, game, auth, lang, unsupportedUrl, code, loginToken, wallPaper, theme, voicechat, 1);
}).show();
return;