Commit graph

4748 commits

Author SHA1 Message Date
Vivek Maskara
d7628959a7
Fix bugs in peer review flow (#3039) (#3042)
* Fix bugs in peer review flow

* Fix tests

* Bug fixes

* Fix remaining issues with peer review
2019-06-26 21:31:06 +05:30
Vivek Maskara
31b5179371
Merge branch 'master' into 2.11-release 2019-06-26 21:14:21 +05:30
Vivek Maskara
5dc45a53d3 Fix bugs in peer review flow (#3039)
* Fix bugs in peer review flow

* Fix tests

* Bug fixes

* Fix remaining issues with peer review
2019-06-26 17:40:49 +03:00
sherlockbeard
4ec92c2e7b fixes the string issue (#3041)
* fix strings

* Update activity_achievements.xml
2019-06-26 17:06:41 +03:00
translatewiki.net
17eb6f43ed Localisation updates from https://translatewiki.net. 2019-06-24 16:43:08 +02:00
neslihanturan
dd50e83319 Fixes previous PR - FIX #2918 Add option for default language for file descriptions (#3020)
* FIX #2918 Add option for default language for file descriptions

* navigation menu error fixed and improvement of code quality

* error language description default fixed

* adapter language selected fixed

* local language selected per default in description language

* Use a better string and variable name as required in review 1

* Add comments

* Add previously missing setValue methods so that list item will be chosen along with the summary

* Add missing Javadocs

* Fix capitalization

* Lint and formatting issues

* Rename methods so it's clearer they are to do with languages

* Use default kv store instead of shared preferences variable

* Make sure saved language code from settings activity is handled on init
2019-06-24 21:40:12 +10:00
translatewiki.net
2837748540 Localisation updates from https://translatewiki.net. 2019-06-20 21:28:47 +02:00
translatewiki.net
667372512b Localisation updates from https://translatewiki.net. 2019-06-17 19:14:52 +02:00
Adam Jones
8e35787248 Gradle 5 update (#3023)
* Update to Gradle 5

* Update gradle-play-publisher
2019-06-17 16:52:26 +05:30
neslihanturan
f2a499e8b6
Revert "Update to Gradle 5 (#2860)" (#3019)
This reverts commit 30df3025b6.
2019-06-14 00:18:43 +03:00
Ashish Kumar
7a5dc77057 Refactor uploads (#2981)
* Feature/refractor uploads [WIP] (#2887)

* Fix duplicate param information (#2515)

* Bug fix issue #2476 (#2526)

* Added wikidataEntityID in all db versions, handled db.execSql via method runQuery

* Versioning and changelog for v2.10.2 (#2531)

* Update changelog.md

* Versioning for v2.10.2

* Update changelog.md

* Bugfix/issue 2580 (#2584)

* Corrected string placedholders in certain string files

* Corrected string placedholders in certain string files[Bug fix #2580]

* Bug Fix #2585 (#2647)

* Bug Fix #2585
* Added null checks on view in SearchImageFragment when updating views from external sources
* Disposed the disposables in SearchActivity and SearchImageFragment when no longer in active lifecycle

* use FragmentUtils to verify fragment active state

* Bug Fix issue #2648 (#2678)

* Bug Fix issue #2648
* Handled external storage permission before file download

* * Removed redudant check for permission in MediaDetailPagerFragment (Dexter already does that)
* Removed duplicate code in PermissionUtil$checkPermissionsAndPerformAction, used the existing function with conditional extra parameters

* string name typo correction

* BugFix issue #2652 (#2706)

* Addded null check on bookmark before operating on it

* BugFix issue #2711 (#2712)

* Added null checks in OkHttpJsonApiClient$searchImages MwQueryResponse

* BugFix #2718 (#2719)

* Handled null auth cookies

* Fix #2791: NPE when nominating for deletion and leaving screen (#2792)

* Bug Fix issue #2789 (#2790)

* Handled Illegal State Exception for non existent appropriate view parents in ViewUtils$showShortSnackbar

* BugFix #2720 (#2831)

BugFix deprecated licenes #2720

* ui fixes, wip, upload

* *Issue #2886, BugFix #2832[wip]
* updated UploadActivity code
* modified ui
* Updated UploadPresenterTest

* * updated interfaces names to follow names suffixed with Contract
* added test cases

* card view elevation

* view pager disabled swipe

* bug fix, duplicate image

* used existing non-swipable view pager

* Avoid image view resize with keyboard, added adjustPan and stateVisible as softinputMode for UploadActivity

* retain UploadBaseFragment instances on orientation changes

* * Added test cases for UploadMediaPresenter
* Injected io and main thread schedulers

* categories presenter test cased wip

* Added CategoriesPresenter test

* * Added the logic to show open map (with to be uploaded image's coordinates while uploading image)

* codacy suggested changes * added java docs

* Added travis_wait fot android-wait-for-emulator

* ranamed interface onResponseCallback to Callback

* * Added api to delete picture in UploadModel
* cleanUp in UploadModel. once upload has been initiated
* Removed unused methods from UploadModel and the corresponding test class

* * Added tests for UploadPresenter
* Travis suggested changes
* Addded copy previous title and description

* * Made the upload add descriptions visible when keyboard visible
* add description request focus only when user manually requests it

* Added JavaDocs, review suggested changes

* Fix dagger injection

* use DialogUtil to show info in descriptions

* use activity context for DialogUtil

* Minor changes

* Bug fix, reduced the add description edit text clickable bound (#2973)

* Bugfix/uploads (#3000)

* merged with master

* BugFix IllegalStateException
* setRetainState(true), not required with FragmentStatePagerAdapter
* Increase the ViewPager's Offscreen Limit, we want all the fragments to be active

* BugFix, clear selected categoris for previous upload session
* Clear Selected Categories
* Addded JavaDocs for CategoriesModel

* Code Formatting in app/src/main/java/fr/free/nrw/commons/upload/UploadModel.java

* Added class level JavaDoc UploadRemoteDataSource

* Added class level JavaDoc for UploadRepository

* Added JavaDocs for ThumbnailsAdapter

* Added JavaDocs for MediaLicensePresenter, CategoriesPresenter

* Removed null check on category query
* Show default catgeories based on image title and gps location when category text empty
* Allow search for empty category search

* Attached image scale listener to upload media image

* Bug fix, reduced the add description edit text clickable bound

* Fix memory leak (#3001)

* Bugfix/uploads (#3002)

* merged with master

* BugFix IllegalStateException
* setRetainState(true), not required with FragmentStatePagerAdapter
* Increase the ViewPager's Offscreen Limit, we want all the fragments to be active

* BugFix, clear selected categoris for previous upload session
* Clear Selected Categories
* Addded JavaDocs for CategoriesModel

* Code Formatting in app/src/main/java/fr/free/nrw/commons/upload/UploadModel.java

* Added class level JavaDoc UploadRemoteDataSource

* Added class level JavaDoc for UploadRepository

* Added JavaDocs for ThumbnailsAdapter

* Added JavaDocs for MediaLicensePresenter, CategoriesPresenter

* Removed null check on category query
* Show default catgeories based on image title and gps location when category text empty
* Allow search for empty category search

* Attached image scale listener to upload media image

* Bug fix, reduced the add description edit text clickable bound

* Added tooltip in Title in UploadMediaFragment

* BugFix recent categories

* Updated test methods

* Bugfix/uploads (#3011)

* merged with master

* BugFix IllegalStateException
* setRetainState(true), not required with FragmentStatePagerAdapter
* Increase the ViewPager's Offscreen Limit, we want all the fragments to be active

* BugFix, clear selected categoris for previous upload session
* Clear Selected Categories
* Addded JavaDocs for CategoriesModel

* Code Formatting in app/src/main/java/fr/free/nrw/commons/upload/UploadModel.java

* Added class level JavaDoc UploadRemoteDataSource

* Added class level JavaDoc for UploadRepository

* Added JavaDocs for ThumbnailsAdapter

* Added JavaDocs for MediaLicensePresenter, CategoriesPresenter

* Removed null check on category query
* Show default catgeories based on image title and gps location when category text empty
* Allow search for empty category search

* Attached image scale listener to upload media image

* Bug fix, reduced the add description edit text clickable bound

* Added tooltip in Title in UploadMediaFragment

* BugFix recent categories

* Updated test methods

* Avoid memory leak, free the adpater in MediaLicenseFragment.onDestroyView

* bugfix/uploads (#3012)

* merged with master

* BugFix IllegalStateException
* setRetainState(true), not required with FragmentStatePagerAdapter
* Increase the ViewPager's Offscreen Limit, we want all the fragments to be active

* BugFix, clear selected categoris for previous upload session
* Clear Selected Categories
* Addded JavaDocs for CategoriesModel

* Code Formatting in app/src/main/java/fr/free/nrw/commons/upload/UploadModel.java

* Added class level JavaDoc UploadRemoteDataSource

* Added class level JavaDoc for UploadRepository

* Added JavaDocs for ThumbnailsAdapter

* Added JavaDocs for MediaLicensePresenter, CategoriesPresenter

* Removed null check on category query
* Show default catgeories based on image title and gps location when category text empty
* Allow search for empty category search

* Attached image scale listener to upload media image

* Bug fix, reduced the add description edit text clickable bound

* Added tooltip in Title in UploadMediaFragment

* BugFix recent categories

* Updated test methods

* Avoid memory leak, free the adpater in MediaLicenseFragment.onDestroyView

* BugFix Illegal State Exception in ViewpPagerAdapter

* Remove irrelevant comment

* merge conflict with strings (#3016)
2019-06-14 01:09:41 +05:30
translatewiki.net
04b051b37a Localisation updates from https://translatewiki.net. 2019-06-13 20:02:26 +02:00
Aadil Ahmed
30df3025b6 Update to Gradle 5 (#2860) 2019-06-13 16:43:51 +01:00
sherlockbeard
6619ccf8d5 removed the hard coded string (#3015)
* removed the hard coded string

* fix
2019-06-12 16:06:25 +03:00
sherlockbeard
09459a3765 user talk and dialog box fix (#3014) 2019-06-12 20:37:22 +09:00
sherlockbeard
6a9018b550 replaced wikidatCreateClaim to wikidataCreateClaim (#3010) 2019-06-11 18:05:12 +09:00
translatewiki.net
69e23b73a8 Localisation updates from https://translatewiki.net. 2019-06-10 20:17:37 +02:00
Vivek Maskara
f855bb5da9 With attribution enabled for OSM (#2997) 2019-06-10 19:28:39 +03:00
Vivek Maskara
8971743479 Fixes #2888: Use Dexter for requesting location permissions (#2925)
* Use dexter to ask for location permissions

* Addressed code review comments
2019-06-08 08:45:30 +03:00
Vivek Maskara
6f9d69e63c Use data client for peer review calls (#2937)
* Use data client for peer review calls

* With java docs

* Optimise API calls and fix tests
2019-06-07 09:59:08 +03:00
translatewiki.net
51e2febc53 Localisation updates from https://translatewiki.net. 2019-06-06 17:52:19 +02:00
Ashish Kumar
06dbfefbe8 BugFix #2993 (#2994)
* Added null check on countResponse in OkHttpJsonApiClient$getWikidataEdits
2019-06-05 16:59:19 +05:30
Ashish Kumar
aabcd0ee79 BugFix Issue #2991 (#2992)
Path Segmens need not be preceeded by "/"
2019-06-05 16:19:24 +05:30
Adam Jones
67e43ef446 Upgrade to Robolectric 4 (#2982) 2019-06-04 22:02:07 +05:30
Vivek Maskara
230b9527ed Edit travis config to have travis integration (#2990) 2019-06-04 20:52:25 +05:30
Vivek Maskara
4a671dcb3d Fetch achievements data from beta cluster for beta variant of the app (#2986) 2019-06-05 00:34:05 +10:00
Ashish Kumar
c4f159ea04 BugFix invalid upload count string (#2989)
* Added non empty check in response.body() in OkHttpJsonApiClient$getUploadCount
2019-06-04 15:58:03 +03:00
Vitaly V. Pinchuk
cc0b059595 Image EXIF/XMP metadata removal routine (#2863)
* [WIP] Added preferences for EXIF tags

* [WIP] Added arrays, keys, strings to support EXIF preferences

* [WIP] Updated SettingsFragment to setup summary of added preferences(locationAccuracy)

* [WIP] Added methods getStringSet()in BasicKvStore, KeyValueStore to support Set<String> data type used in preferences (EXIF tags)

* [WIP] Added methods for removing EXIF tags and anonimyzing location coordinates in FileProcessor, GPSExtractor

* [WIP] Fixed errors in preferences EXIF tags, added XMP removal routine

* [WIP] Removed erroneous location accuracy handling

* [WIP] Fixed mistyped GPS Tags

* Reverted BasicKvStore. Removed Set<String> support in BasicKvStore as JsonKVStore already has it.

* FileProcessor: Replaced throwing runtime exception with warning if EXIF redaction fails.

* FileMetadataUtils: Javadoc added

* [WIP] FileMetadataUtilsTest added

* [WIP] FileMetadataUtilsTest: added javadoc

* [WIP] FileMetadataUtilsTest: added javadoc

* [WIP] FileProcessor: fixed disposing observables

* [WIP] FileMetadataUtils.getTagsFromPref: changed return type from observable to simple array

* [WIP] FileProcessorTest: added test for redactExifTags

* [WIP] FileProcessorTest: redactExifTags() doesn't work properly
2019-06-04 15:38:01 +03:00
translatewiki.net
5690dd9d0b Localisation updates from https://translatewiki.net. 2019-06-03 17:25:14 +02:00
translatewiki.net
12883e3d0b Localisation updates from https://translatewiki.net. 2019-05-27 16:34:33 +02:00
Dan Garry
b4b178cedb Remove variable that was set but never used in SimilarImageDialogFragment (#2957)
There was a variable that was being set in SimilarImageDialogFragment that was never subsequently used; this patch removes it, and all of the imports that become redundant.
2019-05-24 12:58:42 +03:00
Dan Garry
5f3510226a Refactor onRequestPermissionsResult to be simpler (#2965)
onRequestPermissionsResult has a switch statement with a single case, and a functionally empty default; this patch refactors it into an if statement to simplify the code. This patch also changes a C-style array declaration (String permissions[]) to the more standard Java style (String[] permissions).
2019-05-24 12:56:55 +03:00
translatewiki.net
ab783a445f Localisation updates from https://translatewiki.net. 2019-05-23 14:10:29 +02:00
Vitaly V. Pinchuk
d782d3eacc Trim accidentally added space at the end of filename (#2967)
* Fixes #2917: App adds space at end of filename sometimes

* Fix #2917: Trims accidental space at the end of the filename
2019-05-23 14:15:32 +03:00
translatewiki.net
4896e5992e Localisation updates from https://translatewiki.net. 2019-05-20 13:41:58 +02:00
Dan Garry
200f038f2c Remove unnecessary use of String.valueOf() from GPSExtractor (#2958)
valueOf() was being used in cases where it wasn't necessary because the method is called implicitly; this patch removes these usages to make the code clearer and easier to read.
2019-05-19 14:32:08 +02:00
Dan Garry
b176515153 Remove unnecessary Integer.toString() calls (#2959)
In cases where an integer is directly concatenated onto a string, toString() is not needed because it is called implicitly; this patch removes the calls to improve code readability.
2019-05-19 14:24:53 +02:00
Dan Garry
877c669297 Remove redundant empty if/else statement in NotificationActivity (#2953)
* Remove redundant empty if/else statement

This patch removes an empty if/else statement that has no effect on the execution flow of the program.

* Remove redundant empty if/else statement in MainActivity

This patch removes an empty if/else statement that has no effect on the execution flow of the program, which makes the code simpler.
2019-05-17 17:35:14 +03:00
translatewiki.net
45fd7fe5fa Localisation updates from https://translatewiki.net. 2019-05-17 12:13:00 +02:00
Dmitry Brant
6fd969686c Remove additional unnecessary dependencies. (#2948) 2019-05-15 09:46:42 +03:00
Dmitry Brant
967d3ea593 Remove unnecessary dependency on commons-codec. (#2945) 2019-05-14 08:28:13 +03:00
translatewiki.net
54f6dd667f Localisation updates from https://translatewiki.net. 2019-05-13 14:29:38 +02:00
Madhur Gupta
5d827e44ae Moved hardcoded URLs to a constant file Fixed #2850 (#2851)
* Moved hardcoded URLs to build.grade Fixed #2850

* Moved Urls to a constant file

* Fixed Typo
2019-05-10 15:09:32 +03:00
translatewiki.net
a4ac27d5d3 Localisation updates from https://translatewiki.net. 2019-05-09 16:54:18 +02:00
kateOmally
41b53f4560 Replace with enum two strings that were in strings.xml but were used as (#2939)
constants. Remove strings from strings.xml Issue # 2931
2019-05-08 21:37:29 +03:00
Madhur Gupta
2164fb00f3 Added Appetize badge (#2866)
* Added Appetize badge

* Update README.md
2019-05-08 11:21:33 +03:00
Madhur Gupta
867cc9921f Fixed Width of Navigation Drawer for Tablets (#2856) 2019-05-08 11:08:06 +03:00
translatewiki.net
c4b7164784 Localisation updates from https://translatewiki.net. 2019-05-06 16:37:10 +02:00
Ashish Kumar
73f272fded Merge 2.10 with master (#2938)
* Fix duplicate param information (#2515)

* Bug fix issue #2476 (#2526)

* Added wikidataEntityID in all db versions, handled db.execSql via method runQuery

* Versioning and changelog for v2.10.2 (#2531)

* Update changelog.md

* Versioning for v2.10.2

* Update changelog.md

* Bugfix/issue 2580 (#2584)

* Corrected string placedholders in certain string files

* Corrected string placedholders in certain string files[Bug fix #2580]

* Bug Fix #2585 (#2647)

* Bug Fix #2585
* Added null checks on view in SearchImageFragment when updating views from external sources
* Disposed the disposables in SearchActivity and SearchImageFragment when no longer in active lifecycle

* use FragmentUtils to verify fragment active state

* Bug Fix issue #2648 (#2678)

* Bug Fix issue #2648
* Handled external storage permission before file download

* * Removed redudant check for permission in MediaDetailPagerFragment (Dexter already does that)
* Removed duplicate code in PermissionUtil$checkPermissionsAndPerformAction, used the existing function with conditional extra parameters

* string name typo correction

* BugFix issue #2652 (#2706)

* Addded null check on bookmark before operating on it

* BugFix issue #2711 (#2712)

* Added null checks in OkHttpJsonApiClient$searchImages MwQueryResponse

* BugFix #2718 (#2719)

* Handled null auth cookies

* Fix #2791: NPE when nominating for deletion and leaving screen (#2792)

* Bug Fix issue #2789 (#2790)

* Handled Illegal State Exception for non existent appropriate view parents in ViewUtils$showShortSnackbar

* BugFix #2720 (#2831)

BugFix deprecated licenes #2720

* * synced 2.10 with master * resolved merge conflicts

* merge 2.10 with master
2019-05-06 19:22:10 +05:30
translatewiki.net
a4104bc368 Localisation updates from https://translatewiki.net. 2019-05-02 17:57:44 +02:00