Add update account information

This commit is contained in:
Nezumi
2023-03-17 11:40:08 +07:00
parent 3c6f837ab2
commit 11d32ad7c3
9 changed files with 106 additions and 24 deletions
@@ -103,6 +103,7 @@ public class ProfileFragment extends Fragment {
Paper.book().delete("user");
Common.TOKEN = null;
Common.CURRENT_USER = null;
startActivity(new Intent(getContext(), MainActivity.class));
}
@@ -115,4 +116,12 @@ public class ProfileFragment extends Fragment {
});
return rootView;
}
@Override
public void onResume() {
super.onResume();
//Update user name on textview
user_name.setText(Common.CURRENT_USER.getFullName());
}
}