Commit graph

4998 commits

Author SHA1 Message Date
Anmol Gupta
a0309d955a
Modify PR template (#3548) 2020-03-19 11:52:22 +00:00
Aryan Tyagi
4e51492de6
Removed the focus change listener of the username edittext (#3538) 2020-03-19 08:54:23 +00:00
Madhur Gupta
0ad269d3d6
Fixes 3536 (#3537) 2020-03-19 08:39:59 +00:00
Ashish Kumar
efdb00b5ee
Fixes #3359 Duplicate Photos in Contributions Page (#3515)
* Fixes #3359
* Cache thumb url & imageUrl in local db
* Use Fresco's ImageRequest to show images in ContributionViewHolder[this was the issue, we should have always used this to show the image]
* Deleted DisplayableContribution (not needed anymore)
* Exposed abstract function in ContributionDao to updateContribution

* * Make position private in ContributionViewHolder
* Remove MediaDataExtractor from ContributionsFragment

* * Show placeholder image for Contributions while the image loads
* setHasStableId's ContributionsAdapter

* make Random variable private in ContributionViewHolder

* replace local variable-if-with ternary operator in ContributionViewHolder

* Fix indentation/formatting of ternary operator in ContributionViewHolder

* I might revert this commit[I have reasons]

* Create in-memory drawables in CVH's onBind, caches are bad, add mental overhead

* Revert "I might revert this commit[I have reasons]"

This reverts commit 627ac91517.

* minor formatting changes, reverted 627ac91517

* uh-oh missed semicolon, java

* minor formatting changes
2020-03-18 13:47:51 +03:00
Aryan Tyagi
021105ac4d
Add a dialog to prompt user if location is off in Nearby when L… (#3438) 2020-03-18 15:50:00 +05:30
Madhur Gupta
15bccdf650
Fixes #3465 Use AndroidX Pref (#3521)
* [WIP] Fixes #3465 Use AndroidX Pref

* Deleted Unused Files

* Added singleLineTitle

* Updated Gradle Properties

* Migrated to Androidx

* Inline Variable change

* optimise imports

* Fixed Crash on empty input
2020-03-17 13:10:26 +00:00
Vitaly V. Pinchuk
e55b5495a1
Fixes #3464, App posts deletion request notifications ({{subst:idw}}) on the wrong user's talk page (#3495)
* Fixed #3464: App posts deletion request notifications ({{subst:idw}}) on the wrong user's talk page

* Fixed DeleteHelperTest.kt

* Fixed DeleteHelper tests and null-pointer exception

* Modified DeleteHelper makeDeletion() test

* Reverted unintentionally modified Project.xml

* Raising exception when nominating for deletion with empty creator name

* Fixed code style

* Fixed code style
2020-03-17 14:39:28 +03:00
Seán Mac Gillicuddy
cd2d530175
#3524 Convert SpinnerLanguagesAdapter to kotlin - converted to kotlin (#3528)
* #3524 Convert SpinnerLanguagesAdapter to kotlin - converted to kotlin

* #3524 Convert SpinnerLanguagesAdapter to kotlin - add KDoc - rework logic - format
2020-03-17 21:06:56 +10:00
neslihanturan
e5d5a7af92
Fix p18 issue For an item with P18 item, do not add another one (#3527)
* Add p18value variable to contrib

* set place.pic to candidate contribution

* Add p18 value to contrib

* Passes p18 value to wikidata upload service

* Checks if pic parameter of the wikidata item is empty or not. If not, it does not overrides the existing image, it is just a regular commons upload.

* Make public var private

* Make current tests pass

* Add test case for p18 value is not empty

* Fix wrong log message

* Add nonnul annotation and fix method javadoc
2020-03-17 10:35:21 +00:00
318anushka
bdb61dfda6
Fixes #2238 scalebar added in map (#3511)
* scalebar added in map

* changes reverted in .idea/Project.xml

* magic numbers replaced with constants for scalebar

* Default setting for scaling unit

* Default setting for scalebar refresh interval

* Reformatted code for adding scalebar

* dimen values for scalebar params
2020-03-17 08:41:31 +00:00
translatewiki.net
af131a9792 Localisation updates from https://translatewiki.net. 2020-03-16 15:40:49 +01:00
taakanksha
9cb81fce8c
author not shown bug (#3525) 2020-03-16 13:46:36 +00:00
gouri-panda
1fd748f8e7
solved crashing problem in nomination button (#3522)
solved crashing problem in nomination button

solved crashing problem in nomination button
2020-03-16 11:14:06 +00:00
Anmol Gupta
34a016d49d
Change item background according to the theme (#3480)
* Change item  background according to the theme

* Change background colour of item on being selected

* Change background colors using XML selectors
2020-03-16 10:13:20 +00:00
Seán Mac Gillicuddy
81c7281d3a
#3471 Remove android.enableUnitTestBinaryResources - remove line (#3478) 2020-03-16 19:38:58 +10:00
Kshitij Bhardwaj
668b5896a2
Chek if getContext() is instanceOf CategoryImagesCallback and only then request more images 2020-03-14 15:00:33 +05:30
Kaartic Sivaraam
a78e167676
Revert stopgaps related to beta server cert issue (#3396)
* Revert stopgaps related to beta server cert issue

The upstream issue with Commons beta server has been
fixed now[1]. So, there's no point in stopgapping
the issue anymore. So, revert the related changes.

This reverts fa87eb5661
and df426f7c42 which
correspond to PRs #3350 and #3349 respectively.

[1]: https://phabricator.wikimedia.org/T243881#5861983

* Test-fix: fix the failing CI test
2020-03-13 14:58:43 +00:00
Seán Mac Gillicuddy
4bd7a5b1e2
#3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment (#3499)
* #3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment - add apropriate schedulers and convert justs to fromCallable

* #3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment - remove test for removed functionality

* #3493 App freezes for 15 seconds when you press Next in UploadMediaDetailsFragment - replace kotlin with java
2020-03-13 23:47:20 +10:00
translatewiki.net
ed5f8efa6b Localisation updates from https://translatewiki.net. 2020-03-12 19:19:15 +01:00
Madhur Gupta
d925e32d2f
Added AboutActivityTest (#3475)
* Added AboutActivityTest

* Changes made as per suggestions

* Removed File to resolve conflict

* Removed hardcoded packagename

* Changes as per suggestion

* Removed Unrelated changes

* Fixed Build Issues
2020-03-11 15:02:30 -07:00
Seán Mac Gillicuddy
57ddc6af10
#3488 Delete app/prod folder - deleted (#3489) 2020-03-11 22:58:59 +05:30
Seán Mac Gillicuddy
80ea11f7d8
#3445 Add codestyle to git - import google java code style, use predefined styles for kotlin/xml (#3486) 2020-03-11 22:41:29 +10:00
taakanksha
61a3f45512
openStreetMap attribution enabled (#3485) 2020-03-11 09:51:38 +00:00
Vivek Maskara
bd668182b5
[WIP] Implemented Espresso tests for upload with multilingual descriptions (#2830)
* With more upload tests

* Fix tests

* Fix tests
2020-03-10 12:01:22 -07:00
Ashish Kumar
99c6f5f105
Shift contributions to use Room DB (#3324)
* Part of #3127
* Added Room Dependency
* Shifted ContributionsDao to use RoomDB

* Save and Fetch contributions via RoomDAO

* Bugfixes, fixed test cases, injected schedulers for ContributionsPresenter

* removed stetho

* Fixed ReviewHelperTest cases

* Fixed test cases in DeleteHelperTest

* Fetch all contributions [TODO add pagination to use this, maybe later in a seperate PR]

* Update Schema false in AppDatabase

* removed parameter from fetchControbutions

* Added logs for fetch contributions

* Fixed test case ContributionsPresenter

* Added an autogenerate primary key, submit save contributions on executor

* fixed getItemAtPosition

* MainActivity Config changes +=orientation

* BugFixes
* Make AppDataBase Singleton
* Set _id as autogenerate primary key [replacing the previously used filename, seems like they are not unique]
* Replace Execxutor Utils with Subscribers on Singles in UploadService
* BugFix, Upload Progress

* Remove un-nescessary null check on contributions in ContributionsListAdapter

* removed ContributionsListFragment [not-implemeted]

* Review suggested changes
* removed un-nescessary null checks
* provide ContributionsDao
* Minor bug fixes

* wip

* delete existing contributions table (from the existing db) on upgrade

* remove un-nescessary null checks in test classes

* shifted media to be a local variable in ReviewHelperTest

* removed captured folder

* Dispose composite disposables in UploadService

* replaced size check with isEmpty ContributionsPresenter

* transform saveContributions to a Completable

* Addressed comments in review
* Typo in Contributions
* ReasonBuilderTest (create media object instead of mocking)
* Use global Gson object instead of creating a new one in Converters

* Provide Gson to Converters from the CommonsApplicationComponent

* use static method instead of field instead of static field to provide GSON in Converters

* Modified gitignore to exclude captures/*
2020-03-10 00:13:20 +03:00
Kshitij Bhardwaj
642ed51c8c
Fixes #3414: For v2.13, Handle zoom in media details view (#3422)
* MediaDetailFragment: add zoom feature

* fragment_media_detail: add SimpleDrawee for Scroll picture

* ZoomableActivity: activity which facilitates zoom in

* activity_zoomable: xml for zoom activity

* zoomControllers: controllers for handling gesture and zooming

* MediaDetailFragment: fixing name of image variable

* MediaDetailFragment: display as per the aspect ratio of image

* add zoom activity to AndroidManifest

* fix travis ci faliure

* fix resizing of image
2020-03-09 21:07:48 +03:00
translatewiki.net
5fd88ef1a8 Localisation updates from https://translatewiki.net. 2020-03-09 16:34:48 +01:00
Seán Mac Gillicuddy
64179d0073
#3476 Use individual test commands on CI instead of check (#3477)
* #3476 Use individual test commands on CI instead of check - use individual commands and narrow scope

* #3476 Use individual test commands on CI instead of check - fix indentation
2020-03-09 12:16:28 +00:00
Kshitij Bhardwaj
7450b44ab7
Fixes #3295: Ultimate achievement: Too many contributions (#3378) 2020-03-08 17:09:38 +00:00
Anmol Gupta
16f1ba8640
About page: Update logos (#3472) 2020-03-08 13:31:12 +00:00
Vivek Maskara
11e878eb89 Comment out application id from default config 2020-03-06 20:56:53 -07:00
Seán Mac Gillicuddy
49ef5619a6
#3469 Update Gradle Play Publisher to resolve issues with travis build (#3470)
* #3469 Update Gradle Play Publisher to resolve issues with travis build - update GPP/Gradle and use jacoco-android fork with gradle 6.0 support

* #3469 Update Gradle Play Publisher to resolve issues with travis build - remove extraneous space
2020-03-06 23:07:53 +10:00
translatewiki.net
fa1d8bc20b Localisation updates from https://translatewiki.net. 2020-03-05 17:27:56 +01:00
Seán Mac Gillicuddy
1584ffe0e2
Added Support for System Wide Dark Theme (#3460)
* Added Support for System Wide Dark Theme

* changed methods to private

* Moved Strings to strings.xml

* Used Dagger to reduce code repetition

* Changes made as per review suggestions

* Minor Changes

* Fixes as per suggestions

* Minor Fixes as per suggestion

* made the variables static

* removed irrelevant code
2020-03-05 14:33:57 +00:00
Vivek Maskara
65ec071493
Fix existing Espresso tests (#3450)
* Fix existing Espresso tests

* Convert class to kotlin
2020-03-02 15:17:24 -07:00
translatewiki.net
36cafd7c39 Localisation updates from https://translatewiki.net. 2020-03-02 14:43:37 +01:00
Adam Jones
6a5afefbf5
Update mapbox, gradle and android plugin versions (#3443) 2020-03-02 13:17:36 +00:00
Kaartic Sivaraam
48b6745349
Open external links in same activity (#3395)
It's common for users to expect that re-opening the app would
allow them to "continue where they left off". This also applies
for the case where they leave the app after opening an
external link. It's natural for them to expect that they would
see the webpage they left open when they re-open the app. This
doesn't happen for our app as we open custom tabs in a separate
activity. As a consequence, this makes the experience
un-intuitive.

Fix this by opening custom tabs in the same activity.

Fixes: #2944

Co-authored-by: Adam Jones <jones_adam@rocketmail.com>
2020-03-02 19:59:26 +10:00
Madhur Gupta
e68751f0b9
Moved some Java files to kotlin (#3439)
* Converted NetworkConnectionType.java to Kotlin

* Converted Urls.java to Kotlin and Updated AboutActivity

* Improved code quality
2020-03-01 16:13:08 -07:00
Aristos Pasalidis
78057b6a8a
Fix #3091: Remove odd code in CategoryImagesListFragment (#3133) 2020-03-01 15:30:58 +00:00
Veyndan Stuart
7da5d130b7
Replace functions in FileUtilsTest with ones from kotlin-stdlib (#2943) 2020-03-01 13:32:29 +00:00
translatewiki.net
e3034918e7 Localisation updates from https://translatewiki.net. 2020-02-27 17:11:09 +01:00
Madhur Gupta
584fa2c778
Fixes #814 Added App Shortcuts (#3381)
* Fixes #814 Added App Shortcuts

* removed Review app shortcut

* Added Adaptive icons
2020-02-25 15:05:00 -07:00
Aryan Tyagi
fffff62f5c
Fixed a type in NearbyParentFragment.java where significantly was written instead of slightly while adding a log using Timber (#3432) 2020-02-25 13:56:50 +02:00
translatewiki.net
47155d1f55 Localisation updates from https://translatewiki.net. 2020-02-24 15:38:45 +01:00
Madhur Gupta
3d0048a771
Added progress dialog for setting wallpaper (#3427)
* Added progress dialog for setting wallpaper

* Updated dialog strings
2020-02-23 16:51:15 -07:00
Yash Khare
39cb190571
Fix #3416 Add snackbar on clicking add/remove from bookmarks (#3419) 2020-02-21 20:01:28 +10:00
translatewiki.net
d423dbb0be Localisation updates from https://translatewiki.net. 2020-02-20 15:57:46 +01:00
Kshitij Bhardwaj
96f4a5c08f
Fixes #3355 : Do not display pins at all when "Needs Photo" is selected (#3407)
* ic_custom_greyed_out_marker: removing grey marker

* NearbyParentFragment: changing function name and description

* change method name to hideAllMarkers
2020-02-19 20:43:19 +02:00
translatewiki.net
af97e40c13 Localisation updates from https://translatewiki.net. 2020-02-17 14:53:42 +01:00