Update readme

This commit is contained in:
Grishka 2022-04-29 20:39:19 +03:00
parent 10a5bf0a82
commit 31cb17d549
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# Mastodon for Android # Mastodon for Android
[![Crowdin](https://badges.crowdin.net/mastodon-for-android/localized.svg)](https://crowdin.com/project/mastodon-for-android)
<a href="https://play.google.com/store/apps/details?id=org.joinmastodon.android"><img src="img/google-play-badge.png" height="50"></a> <a href="https://play.google.com/store/apps/details?id=org.joinmastodon.android"><img src="img/google-play-badge.png" height="50"></a>

View File

@ -24,7 +24,7 @@ public class AutoOrientationLinearLayout extends LinearLayout{
int childrenTotalWidth=0; int childrenTotalWidth=0;
for(int i=0;i<getChildCount();i++){ for(int i=0;i<getChildCount();i++){
View child=getChildAt(i); View child=getChildAt(i);
measureChildWithMargins(child, widthMeasureSpec, hPadding, heightMeasureSpec, 0); measureChildWithMargins(child, widthMeasureSpec, 0, heightMeasureSpec, 0);
childrenTotalWidth+=child.getMeasuredWidth(); childrenTotalWidth+=child.getMeasuredWidth();
} }
if(childrenTotalWidth>MeasureSpec.getSize(widthMeasureSpec)-hPadding){ if(childrenTotalWidth>MeasureSpec.getSize(widthMeasureSpec)-hPadding){