Skip to content

Commit 62f8a66

Browse files
author
devrel-build
committed
Merge commit 'b6727260e5760342020a5ee7d0824cac72533449' into HEAD
2 parents 6ff6956 + b672726 commit 62f8a66

File tree

1 file changed

+4
-0
lines changed
  • storage/app/src/main/java/com/google/firebase/quickstart/firebasestorage

1 file changed

+4
-0
lines changed

storage/app/src/main/java/com/google/firebase/quickstart/firebasestorage/MainActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ private void uploadFromUri(Uri fileUri) {
188188
// Save the File URI
189189
mFileUri = fileUri;
190190

191+
// Clear the last download, if any
192+
updateUI(mAuth.getCurrentUser());
193+
mDownloadUrl = null;
194+
191195
// Toast message in case the user does not see the notificatio
192196
Toast.makeText(this, "Uploading...", Toast.LENGTH_SHORT).show();
193197

0 commit comments

Comments
 (0)