1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

Fix: open external link alert broken in 7.6.0

This commit is contained in:
luvletter2333 2021-03-23 22:02:41 +08:00
parent 0f070914df
commit cf6fd70fac
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -21756,7 +21756,11 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
} else if (type == 1) {
Browser.openUrl(getParentActivity(), url, inlineReturn == 0, false);
} else if (type == 2) {
Browser.openUrl(getParentActivity(), url, inlineReturn == 0);
// NekoX: Fix skipOpenLinkConfirm broken in 7.6.0, since processExternalUrl is imported in 7.6.0
if (NekoConfig.skipOpenLinkConfirm)
Browser.openUrl(getParentActivity(), url, inlineReturn == 0);
else
AlertsCreator.showOpenUrlAlert(ChatActivity.this, url, true, true, true);
}
}
}