Update readme
This commit is contained in:
parent
10a5bf0a82
commit
31cb17d549
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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){
|
||||||
|
|
Loading…
Reference in New Issue