Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
ZetaTom 2023-07-07 16:27:02 +02:00 committed by Andy Scherzinger
parent 2e1f756210
commit 18ad832610
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -402,11 +402,8 @@ public abstract class DrawerActivity extends ToolbarActivity
private void setDrawerHeaderLogo(Drawable drawable, String serverName) {
ImageView imageHeader = mNavigationViewHeader.findViewById(R.id.drawer_header_logo);
imageHeader.setImageDrawable(drawable);
imageHeader.setScaleType(ImageView.ScaleType.FIT_START);
imageHeader.setAdjustViewBounds(true);
imageHeader.setMaxWidth(DisplayUtils.convertDpToPixel(100f, this));
if (!TextUtils.isEmpty(serverName)) {
TextView serverNameView = mNavigationViewHeader.findViewById(R.id.drawer_header_server_name);
serverNameView.setVisibility(View.VISIBLE);