Release 3.10.1

This commit is contained in:
Thomas 2022-12-10 10:57:28 +01:00
parent 2edb2759e5
commit 57551a716e
4 changed files with 18 additions and 3 deletions

View File

@ -13,8 +13,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 32
versionCode 443
versionName "3.10.0"
versionCode 444
versionName "3.10.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
flavorDimensions "default"

View File

@ -1,4 +1,9 @@
[
{
"version": "3.10.1",
"code": "444",
"note": "Added:\n- Display all messages in threads from remote instances (when possible)\n* Only public messages for instances using the Mastodon API\n* A dedicated button is displayed at the top right when conditions are filled."
},
{
"version": "3.10.0",
"code": "443",

View File

@ -144,7 +144,13 @@ public class ContextActivity extends BaseActivity implements FragmentMastodonCon
if (remote_instance != null) {
action_remote.setVisible(false);
} else {
action_remote.setVisible(firstMessage != null && !firstMessage.visibility.equalsIgnoreCase("direct") && !firstMessage.visibility.equalsIgnoreCase("private"));
if (firstMessage != null && !firstMessage.visibility.equalsIgnoreCase("direct") && !firstMessage.visibility.equalsIgnoreCase("private")) {
Pattern pattern = Helper.statusIdInUrl;
Matcher matcher = pattern.matcher(firstMessage.uri);
action_remote.setVisible(matcher.find());
} else {
action_remote.setVisible(false);
}
}
return true;
}

View File

@ -0,0 +1,4 @@
Added:
- Display all messages in threads from remote instances (when possible)
* Only public messages for instances using the Mastodon API
* A dedicated button is displayed at the top right when conditions are filled.