Skip to content

Request Title When Title Empty In Multi-Upload Share #1769

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

Merged
merged 6 commits into from
Jul 31, 2018

Conversation

albendz
Copy link
Contributor

@albendz albendz commented Jul 30, 2018

Title (required)

Fixes Multiple Uploads crashes if user try to upload without title #1734

Description (required)

Fixes Multiple Uploads crashes if user try to upload without title #1734

As in the single upload case, provide a check that validates the title field and displays a toast if title is not provided.

Tests performed (required)

Tested on {API 24 Android 7.0 Physical Device Samsung Nexus S6

Screenshots showing what changed (optional)

screenshot_20180730-115936

Copy link
Member

@maskaravivek maskaravivek left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @albendz. The changes look good to me. :)

@codecov-io
Copy link

codecov-io commented Jul 30, 2018

Codecov Report

Merging #1769 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1769      +/-   ##
=========================================
- Coverage    3.63%   3.63%   -0.01%     
=========================================
  Files         182     182              
  Lines        9154    9157       +3     
  Branches      795     796       +1     
=========================================
  Hits          333     333              
- Misses       8799    8802       +3     
  Partials       22      22
Impacted Files Coverage Δ
...nrw/commons/upload/MultipleUploadListFragment.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e5a663...6aa0f25. Read the comment docs.

@nicolas-raoul
Copy link
Member

It works, thanks!
Technically, "Please provide a title for this file" should be rather be "Please provide a title for this set" or "Please provide a title for these files", would you mind creating a new string for this?
Merging anyway since the crash is solved.

@nicolas-raoul nicolas-raoul merged commit 6aa0f25 into commons-app:master Jul 31, 2018
@albendz
Copy link
Contributor Author

albendz commented Jul 31, 2018

Yeah, I will make a new string set. I figured we wouldn't have time to do translations for the release so I used the existing string. Do you have instructions on creating new string sets?

@nicolas-raoul
Copy link
Member

I don't think we have instructions, just edit strings.xml :-)

@albendz
Copy link
Contributor Author

albendz commented Jul 31, 2018

Ah, I mean what is the process to request translations?

@nicolas-raoul
Copy link
Member

@albendz albendz deleted the multi_title_empty branch July 31, 2018 18:46
@albendz
Copy link
Contributor Author

albendz commented Jul 31, 2018

PR for new string: #1771

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.

4 participants