@@ -13,8 +13,7 @@ public class Result extends AppCompatActivity {
1313
1414
1515// EditText idInput;
16- EditText idInput ,salaryInput , nicknameInput , addressInput , emailInput , phoneInput ;
17- EditText birthdayInput ;
16+ EditText idInput ,salaryInput , nicknameInput , addressInput , emailInput , phoneInput ,birthdayInput ,nameInput ,ssnInput ,passwordInput ;
1817
1918 @ Override
2019 protected void onCreate (Bundle savedInstanceState ) {
@@ -24,21 +23,33 @@ protected void onCreate(Bundle savedInstanceState) {
2423
2524 if (ab !=null )
2625 {
27- ab .setTitle (getIntent (). getExtras (). getString ( "NAME" ) );
26+ ab .setTitle ("Update Profile" );
2827 }
2928 idInput = findViewById (R .id .idInput );
29+ nameInput = findViewById (R .id .nameInput );
3030 salaryInput = findViewById (R .id .salaryInput );
31+ ssnInput = findViewById (R .id .ssnInput );
32+ passwordInput = findViewById (R .id .passwordInput );
3133 nicknameInput = findViewById (R .id .nicknameInput );
3234 addressInput = findViewById (R .id .addressInput );
3335 emailInput = findViewById (R .id .emailInput );
3436 phoneInput = findViewById (R .id .phoneInput );
37+ birthdayInput = findViewById (R .id .birthdayInput );
3538
3639 nicknameInput .setText (getIntent ().getStringExtra ("NICKNAME" ));
3740 addressInput .setText (getIntent ().getStringExtra ("ADDRESS" ));
3841 emailInput .setText (getIntent ().getStringExtra ("EMAIL" ));
3942 phoneInput .setText (getIntent ().getStringExtra ("PHONE" ));
4043 idInput .setText (String .valueOf (getIntent ().getIntExtra ("ID" ,0 )));
4144 salaryInput .setText (String .valueOf (getIntent ().getIntExtra ("SALARY" ,0 )));
42- // birthdayInput.setText(getIntent().getStringExtra("BIRTHDAY"));
45+ nameInput .setText (getIntent ().getStringExtra ("NAME" ));
46+ ssnInput .setText (getIntent ().getStringExtra ("SSN" ));
47+ passwordInput .setText (getIntent ().getStringExtra ("PASSWORD" ));
48+ birthdayInput .setText (getIntent ().getStringExtra ("BIRTHDAY" ));
49+
50+ idInput .setEnabled (false );
51+ salaryInput .setEnabled (false );
52+ ssnInput .setEnabled (false );
53+ nameInput .setEnabled (false );
4354 }
4455}
0 commit comments