Commit 19c1960b authored by Lucas Braz Cunha's avatar Lucas Braz Cunha

Merge branch 'account_edit' of gitlab.c3sl.ufpr.br:agendador/Mobile into account_edit

parents b50220c5 5a82cf9b
......@@ -851,11 +851,11 @@ public class AccountActivity extends AppCompatActivity implements AccountView {
if(isPhotoDelete) {
//TODO: change photo removal according to back-end
values.put("photo_content", "");
values.put("photo_type", "img/png");
values.put("photo_type", "image/png");
}else {
values.put("photo_content", Utils.getBase64FromFile(userPhotoHelper.getTempFilePath()));
values.put("photo_type", "img/png");
values.put("photo_type", "image/png");
}
values.put("photo_name", userPhotoHelper.getUserUid() + ".png");
......
......@@ -74,7 +74,7 @@ public class AccountPresenter extends BasePresenter<AccountView> {
final AccountUpdate account;
if(body.get("photo_content") != null)
user.setImage(body.get("photo_type"), body.get("photo_name"),body.get("photo_content"));
user.setImage(body.get("photo_type"), body.get("photo_name"), body.get("photo_content"));
if (body.get("password") == null || body.get("password_confirmation") == null){
account = new AccountUpdate(user);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment