Cleaned code, added an invalidate. Needs testing.
This commit is contained in:
@@ -185,29 +185,10 @@ public class ProfileFragment extends Fragment implements View.OnClickListener {
|
|||||||
Bitmap imageBitmap = (Bitmap) extras.get("data");
|
Bitmap imageBitmap = (Bitmap) extras.get("data");
|
||||||
UploadClass uploadClass = new UploadClass();
|
UploadClass uploadClass = new UploadClass();
|
||||||
uploadClass.uploadProfilePicture(imageBitmap);
|
uploadClass.uploadProfilePicture(imageBitmap);
|
||||||
// uploadClass.uploadPicture(new BitmapPost(imageBitmap, "Ik ben een heel mooi comment"));
|
profilePicture.invalidate();
|
||||||
// downloadUrl = uploadClass.getDownloadUrl();
|
|
||||||
// updateUserProfilePic(user);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// protected void updateUserProfilePic(final FirebaseUser user) {
|
|
||||||
// UserProfileChangeRequest request = new UserProfileChangeRequest.Builder()
|
|
||||||
// .setPhotoUri(downloadUrl)
|
|
||||||
// .build();
|
|
||||||
//
|
|
||||||
// user.updateProfile(request)
|
|
||||||
// .addOnCompleteListener(new OnCompleteListener<Void>() {
|
|
||||||
// @Override
|
|
||||||
// public void onComplete(@NonNull Task<Void> task) {
|
|
||||||
// if (task.isSuccessful()) {
|
|
||||||
// Log.d(TAG, "User profile updated!");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
// TODO Make this function into its own class for modularity.
|
// TODO Make this function into its own class for modularity.
|
||||||
/**
|
/**
|
||||||
* Performs password reset action.
|
* Performs password reset action.
|
||||||
|
|||||||
Reference in New Issue
Block a user