Skip to content

+ button on pending uploads screen #6327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Nishthajain7
Copy link

Description (required)

The button allows users to

  • Upload from Camera
  • Upload from Gallery
  • Custom Upload

Fixes #6278

What changes did you make and why?

Refactored PendingUploadsFragment to include the missing + button which enables users to upload Images even when current uploads are pending

Tests performed (required)

Tested ProdDebug build on a real device (Vivo T1x) running API level 30. Verified that:

  • Location permission prompts appear as expected.
  • Camera launches successfully after permission is granted.
  • Permission denial is handled gracefully.

Screenshots (for UI changes only)

image

Need help? See https://support.google.com/android/answer/9075928


Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.

@nicolas-raoul
Copy link
Member

Thanks! I installed your branch on my phone and will test tomorrow. :-)

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! :-)

@@ -115,6 +188,81 @@ class PendingUploadsFragment :
}
}

private fun initializeAnimations() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, most of this code is duplicated from ContributionsListFragment.kt?
If yes, how about not duplicating it, for instance by creating an abstract base class?

Copy link

✅ Generated APK variants!

@nicolas-raoul
Copy link
Member

From a functional point of view it is working great! :-)

@nicolas-raoul
Copy link
Member

Ah, just another thing to fix: After tapping + and uploading several times, I have to press "Back" many times to reach the "Contributions" screen and see the pictures I uploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show + button on pending uploads screen too
2 participants