summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas <tschneider.ac@gmail.com>2023-01-12 17:52:34 +0100
committerThomas <tschneider.ac@gmail.com>2023-01-12 17:52:34 +0100
commitbb2b66ce6af70d9288becb608ae103ce22304630 (patch)
treece8216480901cc8d5d52c5389a7bd48e9bfa3205
parent849967fe973702e8ff3089f7c89aa9f76d5bd50a (diff)
Release 3.14.2
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/assets/release_notes/notes.json5
-rw-r--r--app/src/main/java/app/fedilab/android/helper/Helper.java2
-rw-r--r--app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java4
-rw-r--r--app/src/main/res/layout/popup_release_notes.xml13
-rw-r--r--src/fdroid/fastlane/metadata/android/en/changelogs/464.txt1
6 files changed, 18 insertions, 11 deletions
diff --git a/app/build.gradle b/app/build.gradle
index e39b62ae5..eaabe38d4 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -13,8 +13,8 @@ android {
defaultConfig {
minSdk 21
targetSdk 33
- versionCode 463
- versionName "3.14.1"
+ versionCode 464
+ versionName "3.14.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 53210353f..c4bd320ab 100644
--- a/app/src/main/assets/release_notes/notes.json
+++ b/app/src/main/assets/release_notes/notes.json
@@ -1,5 +1,10 @@
[
{
+ "version": "3.14.2",
+ "code": "464",
+ "note": "Added:\n- Display familiar followers on profiles\n- Display and filter Instance directory\n\nChanged:\n- Bot and reply icon indicators more visible\n- Single media are hidden with link previews\n\nFixed:\n- Fix a crash with Art timelines\n- Friendica: media cannot be downloaded/shared\n- Fix a crash with pinned timelines"
+ },
+ {
"version": "3.14.1",
"code": "463",
"note": "Added:\n- Search bar: display suggestions when starting by \"@\" or \"#\"\n\nChanged:\n- Preload media in timelines to avoid jumps\n- Search: Automatically switch to account tab if no results for tags\n\nFixed:\n- Fix jumps with the fetch more feature\n- Fix videos cannot be saved\n- Tags cannot be pinned when there are no custom tabs\n- PixelFed view: NSFW not honored\n- Fix crashes"
diff --git a/app/src/main/java/app/fedilab/android/helper/Helper.java b/app/src/main/java/app/fedilab/android/helper/Helper.java
index 23fd97a3a..e443b7869 100644
--- a/app/src/main/java/app/fedilab/android/helper/Helper.java
+++ b/app/src/main/java/app/fedilab/android/helper/Helper.java
@@ -1811,7 +1811,7 @@ public class Helper {
binding.aboutSupport.setVisibility(View.GONE);
binding.aboutSupportPaypal.setVisibility(View.GONE);
}
- binding.accountFollow.setImageResource(R.drawable.ic_baseline_person_add_24);
+ binding.accountFollow.setIconResource(R.drawable.ic_baseline_person_add_24);
binding.aboutSupport.setOnClickListener(v -> {
Intent intentLiberapay = new Intent(Intent.ACTION_VIEW);
intentLiberapay.setData(Uri.parse("https://liberapay.com/tom79"));
diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java
index f1ed7df88..ca686c881 100644
--- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java
+++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java
@@ -1287,7 +1287,9 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
}
LayoutInflater inflater = ((Activity) context).getLayoutInflater();
//--- MEDIA ATTACHMENT ---
- if (statusToDeal.media_attachments != null && statusToDeal.media_attachments.size() > 0) {
+ boolean cardDisplayed = (statusToDeal.card != null && (display_card || statusToDeal.isFocused) && statusToDeal.quote_id == null);
+ if (statusToDeal.media_attachments != null && statusToDeal.media_attachments.size() > 0 && (!cardDisplayed || statusToDeal.media_attachments.size() > 1)) {
+
holder.binding.attachmentsList.removeAllViews();
holder.binding.mediaContainer.removeAllViews();
if ((loadMediaType.equals("ASK") || (loadMediaType.equals("WIFI") && !TimelineHelper.isOnWIFI(context))) && !statusToDeal.canLoadMedia) {
diff --git a/app/src/main/res/layout/popup_release_notes.xml b/app/src/main/res/layout/popup_release_notes.xml
index 1d251813a..b6ca774fa 100644
--- a/app/src/main/res/layout/popup_release_notes.xml
+++ b/app/src/main/res/layout/popup_release_notes.xml
@@ -72,20 +72,19 @@
</androidx.appcompat.widget.LinearLayoutCompat>
- <androidx.appcompat.widget.AppCompatImageButton
+ <com.google.android.material.button.MaterialButton
android:id="@+id/account_follow"
- style="@style/Widget.AppCompat.Button.Colored"
+ style="@style/Widget.Material3.Button.Icon"
android:layout_width="48dp"
android:layout_height="48dp"
- android:layout_margin="10dp"
+ android:layout_gravity="center_vertical"
+ android:layout_marginStart="6dp"
+ android:layout_marginTop="6dp"
android:contentDescription="@string/make_an_action"
android:scaleType="fitCenter"
android:visibility="gone"
- app:layout_constraintStart_toEndOf="@id/avatar_container"
- app:layout_constraintTop_toBottomOf="@id/banner_container"
- tools:src="@drawable/ic_baseline_person_add_24"
+ tools:icon="@drawable/ic_baseline_person_add_24"
tools:visibility="visible" />
-
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.button.MaterialButton
diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/464.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/464.txt
index 38199488e..b35d2e686 100644
--- a/src/fdroid/fastlane/metadata/android/en/changelogs/464.txt
+++ b/src/fdroid/fastlane/metadata/android/en/changelogs/464.txt
@@ -4,6 +4,7 @@ Added:
Changed:
- Bot and reply icon indicators more visible
+- Single media are hidden with link previews
Fixed:
- Fix a crash with Art timelines