protected override void Dispose(bool disposing) { if (!disposed) { if (disposing) { if (existingImageWrapper != null) { existingImageWrapper.Dispose(); } if (existingImage != null) { existingImage.Dispose(); } if (progressBar != null) { progressBar.Dispose(); } if (cropViewWrapper != null) { cropViewWrapper.Dispose(); } if (cropView != null) { cropView.Dispose(); } if (imageWrapper != null) { imageWrapper.Dispose(); } if (missingImageButton != null) { missingImageButton.Dispose(); } if (coordinatorLayout != null) { coordinatorLayout.Dispose(); } if (selector != null) { selector.Dispose(); } if (imageBtn != null) { imageBtn.Dispose(); } if (dateBtn != null) { dateBtn.Dispose(); } if (editName != null) { editName.Dispose(); } if (fab != null) { fab.Dispose(); } if (editAmount != null) { editAmount.Dispose(); } if (toolbar != null) { toolbar.Dispose(); } } disposed = true; } base.Dispose(disposing); }