Parcourir la source

[설정][New] 이메일 가입자만 패스워드 설정 옵션 있음

hyodong.min il y a 6 ans
Parent
commit
f46ee07391

+ 4 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/setting/member/SettingMemberInfoFragment.java

@@ -58,6 +58,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
   private View viewCancel;
   private View viewMemberOut;
   private CheckBoxAllDriver checkBoxAllDriver;
+  private View layoutPassword;
 
   @Override
   protected View onAfterCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
@@ -81,6 +82,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
     viewPinReset = findViewById(R.id.text_reset_pin);
     viewCancel = findViewById(R.id.text_cancel);
     viewMemberOut = findViewById(R.id.text_member_out);
+    layoutPassword = findViewById(R.id.layout_password);
 
     editName.addTextChangedListener(new SimpleTextWatcher() {
       @Override
@@ -221,6 +223,8 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
   @Override
   public void setAccountType(String type) {
     imageAccountType.setImageDrawable(ContextCompat.getDrawable(getContext(), AccountType.getAccountIconByType(type)));
+
+    layoutPassword.setVisibility(AccountType.TYPE_EMAIL.equals(type) ? View.VISIBLE : View.GONE);
   }
 
   @Override

+ 1 - 0
app/src/main/res/layout/setting_user_information_layout.xml

@@ -217,6 +217,7 @@
       </android.support.constraint.ConstraintLayout>
 
       <android.support.constraint.ConstraintLayout
+        android:id="@+id/layout_password"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:paddingEnd="15dp"