Cleaned code, added an invalidate. Needs testing.

This commit is contained in:
Niels Zwemmer
2017-06-23 14:35:25 +02:00
parent c5c6ba7a47
commit 0e25ff63cc

View File

@@ -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.