From ea1216b352ce400aad569b0c5a1909a488d6b6ed Mon Sep 17 00:00:00 2001 From: Grishka Date: Tue, 12 Nov 2024 22:12:05 +0300 Subject: [PATCH] Show the direction on gaps + bug fix --- mastodon/build.gradle | 2 +- .../android/fragments/HomeTimelineFragment.java | 3 ++- .../android/ui/displayitems/GapStatusDisplayItem.java | 1 + mastodon/src/main/res/layout/display_item_gap.xml | 6 +++++- mastodon/src/main/res/values/strings.xml | 3 ++- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/mastodon/build.gradle b/mastodon/build.gradle index ea7946c1..cd0a6f70 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -13,7 +13,7 @@ android { applicationId "org.joinmastodon.android" minSdk 23 targetSdk 34 - versionCode 127 + versionCode 128 versionName "2.9.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java index 85c89f1a..d253c22a 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTimelineFragment.java @@ -308,8 +308,9 @@ public class HomeTimelineFragment extends StatusListFragment implements ToolbarD if(!gap.visible){ gap.visible=true; gap.enteredFromTop=child.getTop() @@ -9,10 +10,13 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" + android:layout_marginHorizontal="16dp" android:gravity="center_horizontal" android:textAppearance="@style/m3_body_large" android:textColor="?android:textColorSecondary" - android:text="@string/load_missing_posts"/> + android:maxLines="2" + android:ellipsize="end" + tools:text="@string/load_missing_posts_above"/> These are all the posts from all users in your server (%s). You might like these accounts based on others you follow. New posts - Load missing posts Follow back Pending Follows you @@ -856,4 +855,6 @@ You will lose %s. + Load missing posts above + Load missing posts below \ No newline at end of file