Commit graph

4367 commits

Author SHA1 Message Date
Yusuke Matsubara
aa479dc9b4 [WIP] add on-click actions to ReviewActivity 2019-01-01 12:53:54 +05:30
Yusuke Matsubara
14c871abca [WIP] category check 2019-01-01 12:53:54 +05:30
Elliott Eggleston
3be184edbe Re-use same class for all review fragments (#1537)
And try to add pager indicator
2019-01-01 12:51:47 +05:30
Elliott Eggleston
e5db79e652 Wmhack2018 (#1534)
* tiny fixes

* Load pictures into activities
2019-01-01 12:51:47 +05:30
neslihanturan
7dde464d9d Fix fragments 2019-01-01 12:51:47 +05:30
neslihanturan
6fa26af61c Add ReviewController class 2019-01-01 12:51:47 +05:30
Elliott Eggleston
67310be7b5 Wikimedia hackathon 2018 (#1533)
* First draft of fn to get random recent image

* Use log entries for requests to beta, try to connect refresh button

FIXME: runs http request on main thread, breaks

* Tweak button connection
2019-01-01 12:51:47 +05:30
neslihanturan
8087d0872f Create a fragment pager layout 2019-01-01 12:51:04 +05:30
neslihanturan
f6347f0745 Add new fragment for injection 2019-01-01 12:51:04 +05:30
neslihanturan
12cd548b7a Add fragment pager 2019-01-01 12:49:31 +05:30
neslihanturan
7ddc1a16ba Create base of the Review Activity 2019-01-01 12:49:31 +05:30
neslihanturan
7a1adf9e70 Add a new drawer item to start review acitivty 2019-01-01 12:49:31 +05:30
neslihanturan
1cdeb60e9f Add activity to ActivityBuilderModule for injection 2019-01-01 12:49:31 +05:30
neslihanturan
3c933a9f3f Add strings for review button 2019-01-01 12:47:02 +05:30
neslihanturan
83a89f6da4 Add a top menu with randomizer icon to review activity 2019-01-01 12:46:28 +05:30
neslihanturan
5691b89613 Add a new menu item to drawer for peer review 2019-01-01 12:46:28 +05:30
neslihanturan
2bb70039dd Create review activity layout base 2019-01-01 12:46:28 +05:30
neslihanturan
e1cd6be29c Add new activity to manifest 2019-01-01 12:46:28 +05:30
translatewiki.net
774436ce7b Localisation updates from https://translatewiki.net. 2018-12-31 17:52:23 +01:00
translatewiki.net
da36d2cda3 Localisation updates from https://translatewiki.net. 2018-12-27 10:46:23 +01:00
Kaartic Sivaraam
ecc05c1ca4 Bring back the label for multiple upload intent (#2221)
In the upload revamp, commit f607c1c1 (Multiple uploads with over haul (#1968), 19 Nov 2018),
kept back the label for the single upload intent but removed the label for the multiple upload
intent.

Correct it and bring back the label for the multiple upload intent thus giving a more useful
label for the intent, again.
2018-12-25 13:31:17 +05:30
Shridhar Goel
b447612cc5 Fix #2200: Prevent app from closing while navigating to Home (#2204)
* Fix #2200 Prevent app from closing while navigating to Home
* Add workaround for reorder activity Android bug in some API levels
2018-12-22 13:27:47 +00:00
Adam Jones
493fa6b721 Fix okay buttons in alert dialogs (#2206) 2018-12-21 17:30:36 +02:00
Adam Jones
96d540372a Improve search UI (#2189)
* Improve search UI

* Undo irrelevant parts of commit
2018-12-21 17:24:48 +02:00
Adam Jones
ef517042e3 Update mapbox sdk (#2176) 2018-12-21 16:41:02 +02:00
Adam Jones
fb3136ab19 Spelling mistake fixes (#2151)
* Spelling mistake fixes

* Spelling mistake fix
2018-12-21 15:20:52 +02:00
Adam Jones
d31574f6cd Fix #2197: Links on about page in night mode are correct color (#2199) 2018-12-21 14:26:30 +02:00
Adam Jones
d7e73c37e6 Refactor and add tests to LengthUtils (#2201) 2018-12-21 14:23:53 +02:00
Adam Jones
f04503bb3e Lint issues (#2114)
* Dangling Javadoc comments

* Replace for loop with foreach

* Explicit type can be replaced with <>

* Anonymous type can be replaced with lambda

* Lambda can be replaced with method reference

* Remove redundant methods

* Use capital L for long literals

* Remove unnecessary StringBuilder
2018-12-21 13:09:04 +02:00
Hariharan
8e967a3698 UploadController: Added support for using author names. Fixes #1707. (#1856)
* UploadController: Added support for using author names. Fixes #1707.

* Minor PR tidy-up

* Reword preference item

* Null check to pass startUpload test
2018-12-21 12:52:59 +02:00
Reid
809c0c32d7 Add missing Javadocs to License, Media, and Utils classes (#1965)
* Add missing Javadocs to License, Media, and Utils classes
2018-12-20 21:12:18 +00:00
Ojonathan
f521e8886d Fix night mode accent color (#2098) 2018-12-20 18:20:21 +00:00
briancollins-92
fcd5432f74 Fix 2072: default license selector in Settings (#2084)
* SharedPreferences Dep Injection added, updateLicense() updated

method updateLicense() was previously looking to the UploadModel for the
current default license, this has now been changed so that it gets it from
a SharedPreferences object

* UploadModel.license aligned to SharedPreferences

variable UploadModel.license within the constuctor is now assigned to the string of the
"default_license" value within SharedPreferences

Admittedly this may not be completly necissary as UploadModel.license is modified via
UploadPresenter.updateLicense on creation.
2018-12-20 18:10:06 +00:00
briancollins-92
aec377f547 Fix #2191: Avoid getting stuck if there are any issues with media upload (#2193) 2018-12-20 17:30:14 +00:00
sp2710
a3b33736b3 Updated deleteAll() method to delete all searches instead of 10(#2181) (#2185)
* Updated deleteAll() method to remove all searches insetead of 10 (#2181)

* Updated deleteAll() method to delete all searches instead of 10 (#2181)

* some minor chages
2018-12-20 16:38:29 +00:00
Josephine Lim
aec1e51339 Javadocs and minor refactoring for Nearby package (#2188)
* Add Traceur for getting meaningful RxJava stack traces (#1832)

* Hotfix for overwrite issue in 2.8.0  (#1838)

* This solution is an hotfix for overrite issue came back on 2.8.0 version. What I did is checking the extension, and if it is null, adding .jpg suffix. Because commons files always have suffixes, and we should compare file names after adding suffixes. Othervise overrides are possible.

* Check if file title includes an extension already, by checking if is there any dot in it.

* Fix logic error

* Add uncovered tests

* Remove unecessary line breaks

* Make Javadocs more explicit

* Versioning and changelog for v2.8.2 (#1842)

* Versioning for v2.8.2

* Changelog for v2.8.2

* Delete unused MaterialShowcase class

* Add Javadocs and fix lint errors for DirectUpload.java

* Fix whitespace and add docs

* Replace fragment.getActivity() with the parentActivity var

* Rename unnecessarily-overloaded method getFromWikidataQuery(), add Javadocs

* Javadocs and whitespaces for NearbyPlaces.java

* Use local vars where possible instead of class fields. Non-constants should not be in all caps

* Missed one unnecessary class field

* Remove unnecessary whitespaces that don't improve readability

* Add class summary

* Optimize imports

* Fix access modifiers in Place.java

* Clearer Javadocs

* Add Javadocs to Place.java

* Remove residual conflict

* Fix lint issues in Sitelinks

* Javadocs for Sitelinks.java

* DirectUpload: Replace nested conditionals with guard clauses
2018-12-20 15:19:27 +02:00
Vivek Maskara
4b58f16557 Fix null context error in network utils (#2184) 2018-12-20 12:55:21 +00:00
Ashish Kumar
b9274c0335 Fix memory leak in CategoryDetailsActivity (#1792) 2018-12-20 14:18:30 +02:00
Josephine Lim
33995764ff
Merge pull request #2085 from neslihanturan/fixOrientationIssueOnSearchNearby
Fix orientation issue on nearby after "search this area" is implemented
2018-12-20 20:59:49 +10:00
Nicolas Raoul
24a76b1446 Moved Play Store descriptions to the marketing project 2018-12-20 18:46:39 +09:00
neslihanturan
784ee8b506 Fix #1828: Add missing Javadocs and tidy up code in nearby package (#2133)
* Add Javadocs
* Remove unused variables, methods, fragments, imports, classes
2018-12-19 18:49:08 +00:00
neslihanturan
5a584545a0 Fixes #2014 After re-logging, notifications bell icon is empty (#2173)
* Fix white background on notification bell icon issue

* Fix icon size to 36
2018-12-19 18:18:38 +00:00
Vivek Maskara
f3b450e020 Merge 2.9 release with master (#2174)
* Fix memory leak due to wikidata edit listener (#2048)

* Fix bookmark crash fix (#2047)

* Fix bookmark crash fix

* Fix check for bookmark creator

* Bug fix #2042 (#2056)

* Bug fix #2042
* Added a snack with retry when api in AA fails
* Increased connection timeouts in okhttpclient builder

* added missing string resource

* Bugfix/duplicate categories (#2080)

* Increased timeout to 60 seconds

* Bug fix #1550
* filter duplicate categories

* Fix crash because of inactive fragment UI (#2046)

* Fix crash because of inactive fragment UI

* Add java docs

* Add information icon action Fiixes #2055 2.9.0: the 'i' icon in nearby doesn't do anything (#2057)

* Localisation updates from https://translatewiki.net.

* Remove unused mediawiki api dependency (#1991)

* Categories with pipe suffix (#1873)

* Bug fix issue #1826
Changes made :
-Certain category names used to show suffixed with strings prefixed with pipe '|'. Removed everything after the pipe. As per the discussion on the thread, its safe to remove everything after the pipe, including the pipe

* review suggested changes
*Code formatting
*Extracted out the index of pipe in a variable
*Added issue link in comments

* Remove libraries section from README (#1988)

* Remove libraries section from README

* Add wiki link to "libraries used" to README

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Use alert dialog instead of popup window, for nearby information

* Revert irrelevant changes, sorry
2018-12-19 18:59:49 +02:00
Josephine Lim
21edcb7cbe
Retry failed uploads - #1556 Allow users to easily re-upload failed uploads... (#2112)
* Add cancel and retry buttons on layout contribution

* Make sure your retry logic works

* Add cancel method too

* Add javadocs and remove debug logs

* Remove two unused methods

* Remove old and unused retry buttons as we do for their functions

* Check internet connection before button function, since function requires internet connection

* Remove unused variable

* Display possible solution for badtoken error

* Fix string
2018-12-20 02:56:00 +10:00
Adam Jones
d960c14174
Fix #2172 by fixing whitespace in bash test 2018-12-19 16:24:28 +00:00
Ashish Kumar
4425c36713 Bug fix in campaigns (#2119)
* Bug fix in campaigns

* remove hardcoded reference to camapign at index 0
2018-12-19 22:06:51 +10:00
Adam Jones
46db38b8e9 Fix #2153: Fix explore category lists (#2155) 2018-12-19 01:37:24 +05:30
Adam Jones
0f69deab84 Fix #2147: Remove strings from notification and place layouts (#2150) 2018-12-19 01:33:48 +05:30
Adam Jones
e6593c55e9 Travis should only sign and build APK on master branch (#2162) 2018-12-19 00:08:54 +05:30
Zhao Gang
db38174eb4 Fix #2156: Add plural support for share_license_summary string (#2161) 2018-12-18 17:29:11 +00:00