mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Clean up
Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
parent
2e1f756210
commit
18ad832610
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue