version upgrade, link bug fix

This commit is contained in:
nuclearfog 2023-04-23 13:12:11 +02:00
parent 448ec2409a
commit 2a6e2b8007
No known key found for this signature in database
GPG Key ID: 03488A185C476379
2 changed files with 4 additions and 2 deletions

View File

@ -12,8 +12,8 @@ android {
applicationId 'org.nuclearfog.twidda'
minSdkVersion 21
targetSdkVersion 33
versionCode 82
versionName '3.1.2'
versionCode 83
versionName '3.1.3'
resConfigs 'en', 'de-rDE', 'zh-rCN'
}

View File

@ -36,6 +36,8 @@ public class LinkUtils {
* @param url url to open
*/
public static void openLink(Activity activity, String url) {
if (!url.startsWith("https://"))
url = "https://" + url;
Uri link = Uri.parse(url);
GlobalSettings settings = GlobalSettings.getInstance(activity);
// check if the link points to another status