You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2021/03/23 10:16:40 UTC

[GitHub] [fineract-cn-mobile] EGOR-IND commented on a change in pull request #172: added extra layer to edit is_member status

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



##########
File path: app/src/main/java/org/apache/fineract/ui/online/customers/createcustomer/FormCustomerDetailsFragment.java
##########
@@ -298,4 +313,32 @@ public void onAttach(Context context) {
                     + " must implement OnNavigationBarListener.CustomerDetails");
         }
     }
+
+    @OnClick(R.id.iv_edit_is_member)
+    void editIsMember() {
+        if (tvMemberStatus.getVisibility() == View.VISIBLE) {
+            tvMemberStatus.setVisibility(View.GONE);
+            cbIsmember.setVisibility(View.VISIBLE);
+            ivEditIsMember.setImageResource(R.drawable.ms_ic_check);
+        } else {
+            tvMemberStatus.setVisibility(View.VISIBLE);
+            cbIsmember.setVisibility(View.GONE);
+            ivEditIsMember.setImageResource(R.drawable.ic_edit_black_24dp);
+        }
+    }
+
+    @OnCheckedChanged(R.id.cb_is_member)
+    void setIsMemberStatus() {
+        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

Review comment:
       Yeah, I'm finding a good option for api level less than lollipop. I'll add that patch very soon into this PR😊.




-- 
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:
users@infra.apache.org