diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 1b2e4ecd..080e74b1 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -13,8 +13,8 @@ android { applicationId "org.joinmastodon.android" minSdk 23 targetSdk 34 - versionCode 129 - versionName "2.9.1" + versionCode 130 + versionName "2.9.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 3229eae9..85099fa3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -292,13 +292,17 @@ public class ProfileFragment extends LoaderFragment implements ScrollableToTop, tabbar.setTabTextColors(UiUtils.getThemeColor(getActivity(), R.attr.colorM3OnSurfaceVariant), UiUtils.getThemeColor(getActivity(), R.attr.colorM3Primary)); tabbar.setTabTextSize(V.dp(14)); - tabLayoutMediator=new TabLayoutMediator(tabbar, pager, (tab, position)->tab.setText(switch(position){ - case 0 -> R.string.profile_featured; - case 1 -> R.string.profile_timeline; - case 2 -> R.string.profile_about; - case 3 -> R.string.profile_saved_posts; - default -> throw new IllegalStateException(); - })); + tabLayoutMediator=new TabLayoutMediator(tabbar, pager, (tab, position)->{ + tab.setText(switch(position){ + case 0 -> R.string.profile_featured; + case 1 -> R.string.profile_timeline; + case 2 -> R.string.profile_about; + case 3 -> R.string.profile_saved_posts; + default -> throw new IllegalStateException(); + }); + tab.view.textView.setSingleLine(); + tab.view.textView.setEllipsize(TextUtils.TruncateAt.END); + }); tabbar.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener(){ @Override public void onTabSelected(TabLayout.Tab tab){} diff --git a/mastodon/src/main/res/layout/discover_info_banner.xml b/mastodon/src/main/res/layout/discover_info_banner.xml index d0d8249b..0e21fcb7 100644 --- a/mastodon/src/main/res/layout/discover_info_banner.xml +++ b/mastodon/src/main/res/layout/discover_info_banner.xml @@ -24,6 +24,7 @@ android:id="@+id/banner_text" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_gravity="center_vertical" android:textAppearance="@style/m3_body_medium" android:textColor="?colorM3OnSurface" tools:text="@string/trending_posts_info_banner"/>