Commit graph

5380 commits

Author SHA1 Message Date
Jamie Brown
ca9f6f5e47
Fixes #4437 - Changed indentation on files with 2 spaces to 4 spaces (#4462)
* Edited Project.xml to make indent size 4

* Changed files with 2 space indentation to use 4 space indentation

* Edited Project.xml to make indent size 4

* changed files with 2 space indent to 4 space indent

* fix :Back Pressed Event not work in Explore tab when user not login (#4404)

* fix :Back Pressed Event not work in Explore tab

* minor changes

* fix :Upload count or number of contribution does not get updated when media  is successful uploaded (#4399)

* * fix:Number of Contributions not updated
 * Add javadocs

* minor changes

* made minor changes

* String was nonsense and untranslatible, fixed (#4466)

* Ability to show captions and descriptions in all entered languages (#4355)

* implement Ability to show captions and descriptions in all entered languages
*Add Javadoc

* handle Back event of fragment(mediaDetailFragment)

* fix minor bugs

* add internationalization

* revert previous changes

* fix visibility bug

* resolve conflict

Co-authored-by: Prince kushwaha <65972015+Prince-kushwaha@users.noreply.github.com>
Co-authored-by: neslihanturan <tur.neslihan@gmail.com>
2021-06-21 12:33:11 +09:00
Prince kushwaha
b202f553f0
Ability to show captions and descriptions in all entered languages (#4355)
* implement Ability to show captions and descriptions in all entered languages
*Add Javadoc

* handle Back event of fragment(mediaDetailFragment)

* fix minor bugs

* add internationalization

* revert previous changes

* fix visibility bug

* resolve conflict
2021-06-18 22:30:14 +09:00
neslihanturan
808f21a1f2
String was nonsense and untranslatible, fixed (#4466) 2021-06-18 20:07:35 +09:00
Prince kushwaha
13528bcabd
fix :Upload count or number of contribution does not get updated when media is successful uploaded (#4399)
* * fix:Number of Contributions not updated
 * Add javadocs

* minor changes

* made minor changes
2021-06-18 20:01:37 +09:00
Prince kushwaha
2a2d2879a9
fix :Back Pressed Event not work in Explore tab when user not login (#4404)
* fix :Back Pressed Event not work in Explore tab

* minor changes
2021-06-18 18:42:41 +09:00
neslihanturan
6df35e21a9
Fix doom version issue (#4463)
* Update db version

* DBOpenHelper version update
2021-06-17 23:36:36 +10:00
Pratham Pahariya
22f61195b2
fix edit categories ui (#4414)
Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-06-17 21:49:09 +09:00
Pratham Pahariya
3494fd05a2
fix-issue-4424 (#4445)
Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-06-17 21:40:32 +09:00
Jamie Brown
a3cbe3659c
Typo fixes (#4461)
* Fixed typo on class documentation of TextUtils

* corrected comma placement in documentation

* Fixed typos in comments
2021-06-17 11:53:17 +09:00
Brigham Byerly
2be828c50e
Fixes #3694 Pre-select places as depictions (#4452)
* WikidataEditService: stop automatically adding WikidataPlace as a depiction

When the user initiates the upload process from Nearby and also manually adds the place as a depiction, the depiction is added twice. Since this behavior is invisible to the user, it is being removed in preparation for auto-selecting the place as a depiction on the DepictsFragment screen.

* DepictsFragment: auto-select place as a depiction

Pass the Place reference from UploadActivity to DepictsFragment and select the corresponding DepictedItem. Using the place id, retrieve the corresponding Entity to create and select a DepictedItem.

* UploadRepository: use Place from UploadItem to obtain a DepictedItem

Instead of passing a Place object from UploadActivity to DepictsFragment and then passing the Place object up the chain to obtain and select a DepictedItem, retrieve the Place object directly within UploadRepository

* DepictsFragment: select Place depiction when fragment becomes visible

* UploadDepictsAdapter: make adapter aware of selection state

Update selection state when recycled list items are automatically selected, preventing automatically selected items from appearing as unselected until they are forced to re-bind (i.e. after scrolling)

* DepictsFragment: pre-select place depictions for all UploadItems

If several images are selected and set to different places, pre-select all place depictions to reinforce the intended upload workflow philosophy (i.e. all images in a set are intended to be from/of the same place). See discussion in commons-app/apps-android-commons#3694

* DepictsFragment: scroll to the top every time list is updated
2021-06-17 10:09:41 +09:00
Ashish
10ed6678b3
Fixes 4344 - Duplicate Uploads (#4442)
* Fixes 4344
- Update the retention policy of the Work Manager to ExistingWorkPolicy.APPEND_OR_REPLACE- which would append the new work to the end of existing one. This helps remove the while loop in UploadWorker which was meant to handle the cases where a new worker would be created for retries. The while loop seemed to have race conditions uploading duplicate entries.

* Update states to IN_PROGRESS before uploads are processed
2021-06-14 14:57:15 +03:00
translatewiki.net
09cacde670 Localisation updates from https://translatewiki.net. 2021-06-14 09:51:11 +02:00
neslihanturan
70851fa155
Some build issues occured merging release v3.0 are fixed. One paranthesis issue is solved, a method about UploadService is removed, since we don't use it anymore. (#4451) 2021-06-14 16:25:37 +10:00
Ayan Sarkar
20f74a90c4
Added a feature for editing coordinates (#4418)
* not

* Place Picker added

* Pick location and API call linked

* minor warnings resolved

* Code conventions followed

* issue fixed

* Wikitext edited properly

* minor modification

* Location Picker added

* Bottom sheet removed

* Location picker fully implemented

* credit added

* credit added

* issues fixed

* issues fixed

* minor issue fixed
2021-06-13 12:36:47 +09:00
translatewiki.net
15e66f5278 Localisation updates from https://translatewiki.net. 2021-06-10 16:38:00 +02:00
Josephine Lim
ca75f616d2
Merge v3.0.1 into master (#4446)
* Versioning and changelog for v3.0.0 (#4152)

* Versioning for v3.0.0

* Update changelog.md

* Handled migration 8-9-10 in BookmarksLocationDao (#4154)

* #Fixes #4141
- Handled migrations for BookmarkLocationsDao from 8-9-10

* #Fixes #4141
- Handled migrations for BookmarkLocationsDao from 8-9-10

* Fixes #4179 (#4180)

* Handled null pointer exception in MainActivity->ContributionsFragment#backButtonClicked()
* Updated >ContributionsFragment#backButtonClicked() to handle back press properly

* Fixes #4179 (#4181)

* Handled possible null check on MediaDetails in BookmarkListRootFragment#backPressed()

* Cherrypick for hotfix3.1 (#4205)

* Fixes #4159 On Explore Tab, All Available Options on toolbar in media detail view are only targeting the first media in the list.

Fixes #4159 On Explore Tab, All Available Options on toolbar in media detail view are only targeting the first media in the list.

* fixed bug: App crashes on viewing review in Review Fragment #4132 (#4146)

* fixed bug:app crashes on viewing review in Review Fragment #4135

* Fixed the issue with back button in contribution tab. (#4177)

Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>

* Fixed the issue with back navigation button on toolbar in explore tab. (#4175)

* Fix (#4148) Issues on theme change

* fixed themeChange crashes

* fixed comments

* Overlooked the title bar

Co-authored-by: Pratham Pahariya <54663429+Pratham2305@users.noreply.github.com>
Co-authored-by: Shabir Ahmad <56585337+shabar-shab@users.noreply.github.com>
Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
Co-authored-by: Aditya-Srivastav <54016427+4D17Y4@users.noreply.github.com>

* Fixes #4173 (#4396)

* Fix #4147  Pre-fill desc in Nearby uploads with Wikidata item's label + description (#4390)

* Update query to fetch descriptions

* Make description added to NearbyResultItem

* Make string operations to display description and label in a combined way

* Fix reviews, remove long description from list and swap label and description texts

* Fix repeated information issue

* Fix double information issue

* fix style issues

* Remove douplicated information

* Changes made (#4354)

* Remove nonexistent method

* Fix #4283 IllegalStateException (#4440)

* Fix #4283 IllegalStateException

* Fix flickering issue

* Versioning for v3.0.1

* Update changelog.md

Co-authored-by: Ashish <ashishkumar468@gmail.com>
Co-authored-by: neslihanturan <tur.neslihan@gmail.com>
Co-authored-by: Pratham Pahariya <54663429+Pratham2305@users.noreply.github.com>
Co-authored-by: Shabir Ahmad <56585337+shabar-shab@users.noreply.github.com>
Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
Co-authored-by: Aditya-Srivastav <54016427+4D17Y4@users.noreply.github.com>
Co-authored-by: Madhur Gupta <30932899+madhurgupta10@users.noreply.github.com>
Co-authored-by: Vinayak Aggarwal <56196007+vinayak0505@users.noreply.github.com>
2021-06-09 20:19:24 +10:00
Amir E. Aharoni
7823b18db9
Remove unnecessary whitespace from a message (#4439) 2021-06-08 11:50:42 +03:00
obsidian-zero
feb75cbb9f
Fixes #4357 After switching to different account, contributions screen shows pictures of previous account (#4421)
* Update UploadMediaDetailFragment.java

* Update LoginActivity.java

Clear CompositeDisposable after logging in successfully. It may help solve the problem of saving the contribution to the previous account

* Revert "Update UploadMediaDetailFragment.java"

This reverts commit b1b4257f20.

Co-authored-by: Obsidian_zero <1198474846@qq.com>
2021-06-07 18:52:19 +03:00
translatewiki.net
c06756b89d Localisation updates from https://translatewiki.net. 2021-06-07 14:45:46 +02:00
Brigham Byerly
165c375bbd
UploadMediaDetail: replace discreet error toast with more-noticeable dialog (#4433) 2021-06-04 12:34:46 +03:00
Pratham Pahariya
ca18763e4f
Fixes #2815 - Nominating for deletion is cancelled on leaving the media details (#4295)
* fix issue with nominating for deletion

* Fix UI issue

* minor improvements

* fix App crash

* Added Javadoc and other minor improvements

* Updated string name

Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-06-04 11:15:39 +09:00
translatewiki.net
76b30678da Localisation updates from https://translatewiki.net. 2021-06-03 15:10:02 +02:00
Madhur Gupta
d400790d9d
Add more tests for Auth (#4436) 2021-06-03 19:07:57 +10:00
Prince kushwaha
4fa18e5e27
In depictions selection screen, suggest recently selected items (#4361)
* implement in depictions selection screen to suggest recently selected items

*use RoomDataBase
* Add Javadoc

* fix an bug

* minar change and remove extra line of code

* minar changes

* improve implemention strategy

* fix unittest

* Add javadoc

* added javadoc
2021-05-31 19:19:55 +09:00
Ayan Sarkar
18cfc89fa4
TextView blank issue fixed (#4416)
* TextView blank issue fixed

* minor issue fixed
2021-05-31 12:44:04 +03:00
translatewiki.net
a524ac7dfe Localisation updates from https://translatewiki.net. 2021-05-31 10:31:24 +02:00
translatewiki.net
143fb7bd82 Localisation updates from https://translatewiki.net. 2021-05-31 10:00:26 +02:00
translatewiki.net
9ddf17248a Localisation updates from https://translatewiki.net. 2021-05-27 15:35:03 +02:00
translatewiki.net
5816311c8e Localisation updates from https://translatewiki.net. 2021-05-24 13:57:49 +02:00
translatewiki.net
7db6f835a0 Localisation updates from https://translatewiki.net. 2021-05-17 13:06:16 +02:00
Ayan Sarkar
b6ffe9ff06
New review layout UI for landscape view (#4412)
* ReviewActivity landscape layout created successfully

* Minor issues fixed

* minor modification

* crash fixed
2021-05-15 23:43:37 +09:00
Ayan Sarkar
1408fe5e53
Made locale non dependent on phone OS settings, but choosable on app settings (#4366)
* setLocale added

* localization added

* test complete

* resolved conflicts

* issues resolved

* minor issues fixed

* Made methods concise

* Issues fixed
2021-05-15 23:30:03 +09:00
Aditya-Srivastav
9562fd1f2c
added bookmarkLocationFragment unit tests (#4407)
* added bookmarkLocationFragment unit tests

* more lines covered
2021-05-15 18:56:01 +05:30
Ayan Sarkar
a78fea09d7
Added an option to Remove a new language description while uploading (#4406)
* implementation done modification required in card & more

* Remove button reversed

* Code beautification done

* Code beautification done

* minor issues fixed

* java docs added
2021-05-15 09:14:29 +09:00
Madhur Gupta
4b7e75c42c
Add more tests for MainActivity (#4410) 2021-05-14 17:21:12 +10:00
Madhur Gupta
48f2bb8863
Add more tests for Quiz (#4411) 2021-05-14 17:20:46 +10:00
Pratham Pahariya
c7f7b39151
Fixes #3380 - "Nearby Place found" despite already Nearby upload (#4408)
* fix issue with "nearby place found" pop up on nearby upload

* added javadoc

Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-05-13 23:00:55 +09:00
Pratham Pahariya
2b62d8487b
Fixes #4286 - Contributions didn't appear after logging in again (#4337)
* fix the issue with contributions not appearing after logging in again

* fix old contribution appearing on top

Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-05-10 19:28:32 +03:00
finalrepublic
0fb2f1b7be
Fix #4217 Share button color should be changed from white to black in About Activity (#4373)
* a solution to share-icon problem
2021-05-10 19:13:36 +03:00
Prince kushwaha
0c8b92c7aa
Show media details fragment when on clicking image of Peer Review (#4374)
* * show MediaDetailFragment in ReviewActivity on image click
* Add javadoc
* Reformated code of  ReviewActivity xml

* fix typos

* add unit test

* made minor changes
2021-05-10 19:07:28 +03:00
translatewiki.net
e9069d060c Localisation updates from https://translatewiki.net. 2021-05-10 14:01:44 +02:00
Madhur Gupta
48eb140218
Remove dependency which was causing build to fail for Instrumentation Tests (#4369) 2021-05-10 17:38:53 +10:00
Madhur Gupta
2f4c30416d
Update Test Dependency version (#4405)
* Update Version and Unit Test

* fix failing tests

* update robolectric
2021-05-10 17:22:56 +10:00
Vinayak Aggarwal
117a7805ad
Fixes #4300 Limited connection mode banner occupies too much space (#4375)
* done

* fixed

* minor changes made

changed tv, Tv to text_view, TextView, improved comment for toggleDescriptionListener
2021-05-08 18:49:50 +09:00
Pratham Pahariya
845a901604
Fixes #4385 - App crash On categoryDetail activity when click on image after orientation change (#4397)
* fix issue 4385

* fix orientation change issue

* added javadoc

Co-authored-by: Pratham2305 <Pratham2305@users.noreply.github.com>
2021-05-08 18:45:32 +09:00
translatewiki.net
3577bd9e3e Localisation updates from https://translatewiki.net. 2021-05-07 10:47:57 +02:00
translatewiki.net
6f83accd5f Localisation updates from https://translatewiki.net. 2021-05-03 15:19:21 +02:00
Piyush Goel
cf7583abd4
Login error message is displayed in native phone locale language and not in just English. Fixes #4290 (#4389)
* Login error message is displayed in native phone locale language.

* Login error message is displayed in native phone locale language.
2021-05-03 09:37:14 +09:00
translatewiki.net
f35d6d605b Localisation updates from https://translatewiki.net. 2021-04-30 08:46:14 +02:00
Madhur Gupta
a5154fb7fe
Add few more tests for campaign module (#4384) 2021-04-28 17:12:11 +10:00