Skip to content

Fixes #2882: Item name not filled in toast #2890

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

Closed
wants to merge 8 commits into from

Conversation

ahmedmamdouh13
Copy link

@ahmedmamdouh13 ahmedmamdouh13 commented Apr 17, 2019

Description

Put item name into sharedPreferences to fix Toast in edit wikidata issue.

item name wasn't displayed in the Toast of successful wikidata editing operation

Fixes #2882 Item name not filled in toast

What changes did you make and why?

-put item name into sharedPreferences in UploadModel class , to fix Toast display from the WikiDataEditService class.

Tests Performed

...

@codecov-io
Copy link

codecov-io commented Apr 17, 2019

Codecov Report

Merging #2890 into master will increase coverage by 0.21%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2890      +/-   ##
=========================================
+ Coverage    3.41%   3.62%   +0.21%     
=========================================
  Files         246     246              
  Lines       12252   12210      -42     
  Branches     1080    1077       -3     
=========================================
+ Hits          418     443      +25     
+ Misses      11803   11733      -70     
- Partials       31      34       +3
Impacted Files Coverage Δ
...n/java/fr/free/nrw/commons/upload/UploadModel.java 34.06% <0%> (-0.19%) ⬇️
...ommons/bookmarks/pictures/BookmarkPicturesDao.java 0% <0%> (ø) ⬆️
...ee/nrw/commons/media/MediaDetailPagerFragment.java 0% <0%> (ø) ⬆️
...ommons/contributions/ContributionsSyncAdapter.java 0% <0%> (ø) ⬆️
...ava/fr/free/nrw/commons/review/ReviewActivity.java 0% <0%> (ø) ⬆️
...s/bookmarks/pictures/BookmarkPicturesFragment.java 0% <0%> (ø) ⬆️
.../fr/free/nrw/commons/nearby/NearbyMapFragment.java 0% <0%> (ø) ⬆️
app/src/main/java/fr/free/nrw/commons/Media.java 6.89% <0%> (+0.77%) ⬆️
app/src/main/java/fr/free/nrw/commons/Utils.java 18.03% <0%> (+0.84%) ⬆️
.../java/fr/free/nrw/commons/review/ReviewHelper.java 86.48% <0%> (+6.48%) ⬆️
... and 3 more

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 99ae8f2...9c8c93f. Read the comment docs.

@madhurgupta10
Copy link
Collaborator

@ahmedmamdouh13 It would be nice if you add some information on which device and app flavor you tested :)

@@ -209,6 +209,7 @@ public void next() {
void setCurrentTitleAndDescriptions(Title title, List<Description> descriptions) {
setCurrentUploadTitle(title);
setCurrentUploadDescriptions(descriptions);
store.putString("Title",title.toString());
Copy link
Member

Choose a reason for hiding this comment

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

Java developers have the habit of adding a space after the comma, would you mind adding it?
More about the coding style: https://github.com/commons-app/apps-android-commons/wiki/Code-style
You can commit and push the same branch, it will automatically update your pull request. Thanks :-)

@nicolas-raoul
Copy link
Member

Would you mind posting a screenshot showing the fixed result? Thanks :-)

@neslihanturan neslihanturan changed the title put item name into sharedPreferences to fix Toast in edit wikidata is… Fixes #2882: Item name not filled in toast Apr 18, 2019
@ahmedmamdouh13
Copy link
Author

Thank you all for your patience !
Screenshot_1555613628
Screenshot_1555613668

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.

Item name not filled in toast
4 participants