EGOR-IND commented on a change in pull request #168:
URL: https://github.com/apache/fineract-cn-mobile/pull/168#discussion_r598143192



##########
File path: 
app/src/main/java/org/apache/fineract/ui/online/groups/grouptasks/GroupTasksBottomSheetFragment.kt
##########
@@ -120,6 +120,11 @@ class GroupTasksBottomSheetFragment(val group: Group) : 
FineractBaseBottomSheetD
 
     @OnClick(R.id.btn_submit_task)
     fun submitTask() {
+        if (rootView.et_comment.text.toString().isEmpty()) {

Review comment:
       > Looks Good to me. With kotlin you can directly access UI elements
   
   I already did that but it was throwing null pointer, that's why the rootview 
is there actually the rootview is consisting the rootview and it is this class 
is actually handling the rootview so that's why rootview is used to access 
et_comment.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to