diff --git a/app/build.gradle b/app/build.gradle index c6238048..2f198b3d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,8 +13,8 @@ android { defaultConfig { minSdk 21 targetSdk 33 - versionCode 473 - versionName "3.16.1" + versionCode 474 + versionName "3.16.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } flavorDimensions "default" diff --git a/app/src/main/assets/release_notes/notes.json b/app/src/main/assets/release_notes/notes.json index 73beee0c..feca59e6 100644 --- a/app/src/main/assets/release_notes/notes.json +++ b/app/src/main/assets/release_notes/notes.json @@ -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", "code": "473", diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java index 5d151982..b5abedd8 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java @@ -680,7 +680,10 @@ public class StatusAdapter extends RecyclerView.Adapter MathJaxView mathview = new MathJaxView(context, mathJaxConfig); holder.binding.statusContentMaths.addView(mathview); if (status.contentSpan != null) { - mathview.setInputText(status.contentSpan.toString()); + String input = status.contentSpan.toString(); + input = input.replaceAll("'", "'"); + input = input.replaceAll("\"", """); + mathview.setInputText(input); } else { status.mathsShown = false; holder.binding.statusContentMaths.setVisibility(View.GONE); diff --git a/mathjaxandroid/src/main/java/de/timfreiheit/mathjax/android/MathJaxView.java b/mathjaxandroid/src/main/java/de/timfreiheit/mathjax/android/MathJaxView.java index 8754c5d2..57e4c7df 100644 --- a/mathjaxandroid/src/main/java/de/timfreiheit/mathjax/android/MathJaxView.java +++ b/mathjaxandroid/src/main/java/de/timfreiheit/mathjax/android/MathJaxView.java @@ -167,7 +167,9 @@ public class MathJaxView extends FrameLayout { mWebView.setHorizontalScrollBarEnabled(horizontalScrollbarsEnabled); mWebView.setBackgroundColor(0); 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) { String process = getProcessName(context); if (!context.getPackageName().equals(process)) diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/474.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/474.txt index 10ebcd51..8d142c30 100644 --- a/src/fdroid/fastlane/metadata/android/en/changelogs/474.txt +++ b/src/fdroid/fastlane/metadata/android/en/changelogs/474.txt @@ -1,6 +1,6 @@ Added: - Peertube support -- Compose shortcut +- Compose shortcut (long press launcher) - Long press compose button to write with another account - Edit description and focus for media (for the next Mastodon release) @@ -11,4 +11,5 @@ Changed: Fixed: - Text cleared when adding a media +- Fix Maths not working with quotes - Fix crashes \ No newline at end of file