Fix #835
This commit is contained in:
@@ -100,6 +100,7 @@ public class SettingsServerAboutFragment extends LoaderFragment{
|
|||||||
scroller.setClipToPadding(false);
|
scroller.setClipToPadding(false);
|
||||||
scroller.addView(scrollingLayout);
|
scroller.addView(scrollingLayout);
|
||||||
|
|
||||||
|
if(!TextUtils.isEmpty(instance.thumbnail)){
|
||||||
FixedAspectRatioImageView banner=new FixedAspectRatioImageView(getActivity());
|
FixedAspectRatioImageView banner=new FixedAspectRatioImageView(getActivity());
|
||||||
banner.setAspectRatio(1.914893617f);
|
banner.setAspectRatio(1.914893617f);
|
||||||
banner.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
banner.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
||||||
@@ -109,6 +110,9 @@ public class SettingsServerAboutFragment extends LoaderFragment{
|
|||||||
LinearLayout.LayoutParams blp=new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
LinearLayout.LayoutParams blp=new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||||
blp.bottomMargin=V.dp(24);
|
blp.bottomMargin=V.dp(24);
|
||||||
scrollingLayout.addView(banner, blp);
|
scrollingLayout.addView(banner, blp);
|
||||||
|
}else{
|
||||||
|
scrollingLayout.setPadding(0, V.dp(24), 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
boolean needDivider=false;
|
boolean needDivider=false;
|
||||||
if(instance.contactAccount!=null){
|
if(instance.contactAccount!=null){
|
||||||
|
|||||||
Reference in New Issue
Block a user