Release 3.16.2

This commit is contained in:
Thomas 2023-01-29 17:56:40 +01:00
parent de46b38991
commit 58f3d01c87
5 changed files with 16 additions and 5 deletions

View file

@ -13,8 +13,8 @@ android {
defaultConfig { defaultConfig {
minSdk 21 minSdk 21
targetSdk 33 targetSdk 33
versionCode 473 versionCode 474
versionName "3.16.1" versionName "3.16.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
flavorDimensions "default" flavorDimensions "default"

View file

@ -1,4 +1,9 @@
[ [
{
"version": "3.16.2",
"code": "474",
"note": "Added:\n- Peertube support\n- Compose shortcut (long press launcher)\n- Long press compose button to write with another account\n- Edit description and focus for media (for the next Mastodon release)\n\nChanged:\n- Cross actions with two accounts display a dialog\n- Order & compact og values when sharing > title - url - content\n- Tap on top message (user info) open threads\n\nFixed:\n- Text cleared when adding a media\n- Fix Maths not working with quotes\n- Fix crashes"
},
{ {
"version": "3.16.1", "version": "3.16.1",
"code": "473", "code": "473",

View file

@ -680,7 +680,10 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
MathJaxView mathview = new MathJaxView(context, mathJaxConfig); MathJaxView mathview = new MathJaxView(context, mathJaxConfig);
holder.binding.statusContentMaths.addView(mathview); holder.binding.statusContentMaths.addView(mathview);
if (status.contentSpan != null) { if (status.contentSpan != null) {
mathview.setInputText(status.contentSpan.toString()); String input = status.contentSpan.toString();
input = input.replaceAll("'", "&#39;");
input = input.replaceAll("\"", "&#34;");
mathview.setInputText(input);
} else { } else {
status.mathsShown = false; status.mathsShown = false;
holder.binding.statusContentMaths.setVisibility(View.GONE); holder.binding.statusContentMaths.setVisibility(View.GONE);

View file

@ -167,7 +167,9 @@ public class MathJaxView extends FrameLayout {
mWebView.setHorizontalScrollBarEnabled(horizontalScrollbarsEnabled); mWebView.setHorizontalScrollBarEnabled(horizontalScrollbarsEnabled);
mWebView.setBackgroundColor(0); mWebView.setBackgroundColor(0);
mWebView.getSettings().setLoadWithOverviewMode(true); mWebView.getSettings().setLoadWithOverviewMode(true);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
WebView.setWebContentsDebuggingEnabled(true);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
String process = getProcessName(context); String process = getProcessName(context);
if (!context.getPackageName().equals(process)) if (!context.getPackageName().equals(process))

View file

@ -1,6 +1,6 @@
Added: Added:
- Peertube support - Peertube support
- Compose shortcut - Compose shortcut (long press launcher)
- Long press compose button to write with another account - Long press compose button to write with another account
- Edit description and focus for media (for the next Mastodon release) - Edit description and focus for media (for the next Mastodon release)
@ -11,4 +11,5 @@ Changed:
Fixed: Fixed:
- Text cleared when adding a media - Text cleared when adding a media
- Fix Maths not working with quotes
- Fix crashes - Fix crashes