mirror of
https://github.com/Nezumi-2711/Foodify.git
synced 2026-09-22 20:00:50 +00:00
Add update account information
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user