Commit graph

2170 commits

Author SHA1 Message Date
Ashish Kumar
1b86726364 Bugfix #2476 (#2527)
updated database version and added associated tests
2019-03-01 06:14:36 +13:00
Zhao Gang
ab4fca5ea9 Make uploading file notification quieter on some devices(Fixed #2528) (#2529)
Add setOnlyAlertOnce flag to NotificationCompat.Builder. This fixed
the issue that notification makes an alarm(beep) every time uploading
progress updated on some devices.

Also let UploadService.class reuse NotificationCompat.Builder as much
as possible(instead of creating a NotificationCompat.Builder every
time in method uploadContribution). And some small refactors.
2019-03-01 06:12:47 +13:00
Ashish Kumar
64eae8be82 Bug fix issue #2476 (#2526)
* Added wikidataEntityID in all db versions, handled db.execSql via method runQuery
2019-02-28 05:55:16 +13:00
Shridhar Goel
6365815e0d Toggle state of bottom card on click (#2391) 2019-02-27 02:03:59 +05:30
Madhur Gupta
ef6fd9f292 Fix Bug #2477 (#2488) 2019-02-27 01:58:15 +05:30
Madhur Gupta
5dffea4242 Fix Bug #2489 (#2491)
* Fix Bug #2489

* Removed Unused import Log statement
2019-02-27 01:57:43 +05:30
Vanshika Arora
105e5d7894 Made nearby notification also visible to right-to-left languages (#2365)
* Fixed Issue #2334

* resolved gradle changes

* changed gragle.wrapper
2019-02-27 01:55:27 +05:30
Blesson Thomas
b244e403c2 Fix achievements activity share option (#2416) (#2478)
* Use fileProvider instead of Uri.fromFile()
* As Uri.fromFile() will not work on Android 7.0+, with a targetSdkVersion of 24 or higher, throws FileUriExposedException
2019-02-27 01:53:56 +05:30
Madhur Gupta
5a9cce0f79 Add Device Support Information to Feedback Intent #2494 (#2499)
* Add Device Support Information to Feedback Intent #2494

* Update Device Support Information for Feedback Intent #2494

* Update Device Support Information and used common method for Feedback Intent #2494

* Optimise code for Device Support Information for Feedback Intent #2494
2019-02-27 01:49:59 +05:30
Vivek Maskara
5bcb2a41fd Fix duplicate param information (#2515) 2019-02-26 05:24:37 +13:00
Vanshika Arora
3a822d3c30 Added IPTC reader (#2383)
* graddle changes

* readfbmd class

* jar files

* added icafe

* gradle changes

* ReadFBMD

* recent commit

* commit changes

* commit changes

* fixed code quality issues

* optimised imports

* changes for  reviews

* not instantiating class

* removed irrelevant code

* added documentation

* modified test cases

* commit changes

* modified variable

* modified variable

* javadoc

* test changes

* removed .log file

* Show warning dialog for FBMD
2019-02-24 23:16:22 +05:30
Ronak Lakhotia
01a7526477 Fix code quality issues (#2359)
* Minor changes

* Fix more errors

* Revert change

* Minor error fix

* Remove unused import

* Merge branch 'master' of github.com:commons-app/apps-android-commons into lint-errors

# Conflicts:
#	app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java

* Minor changes

* Undo changes

* Undo performclick
2019-02-22 14:51:58 +05:30
Josephine Lim
51cf902573 Merge branch '2.10-release' 2019-02-21 21:03:33 +10:00
Ashish Kumar
cd145efe91 Bug fix issue #2476 (#2495)
* Bug fix issue #2476
* Support db migrations from version 5

* support migration(alter table) for versions >5
2019-02-20 22:28:53 +05:30
Vivek Maskara
546322ac35
Fix update date template based on date source (#2483) (#2492)
* Fix update date template based on date source

* Add javadocs
2019-02-20 20:14:19 +05:30
Josephine Lim
b698d14172 Merge branch '2.10-release' 2019-02-18 19:13:24 +10:00
Vivek Maskara
083a7a80f0 Fix notification click (#2474) 2019-02-18 21:52:10 +13:00
Vivek Maskara
0ef60e050d
Revert "fixed. I have fixed the layout desingn of achivement activity (#2469)" (#2475)
This reverts commit c7e819d404.
2019-02-15 17:50:04 +05:30
Anike Nath
c7e819d404 fixed. I have fixed the layout desingn of achivement activity (#2469) 2019-02-15 17:39:31 +05:30
Anike Nath
628998e841 issue(#2449) solved. it was getting a null pointer exception (#2473) 2019-02-15 16:24:27 +05:30
Vanshika Arora
635047ded2 Fixed issue #2291 (#2292)
* Fixed issue #2291

* resolved codacy issue

* settings

* removed unwanted commemts
2019-02-13 21:08:24 +05:30
Vivek Maskara
d1e9b2f801 Fix errors while making image quality checks (#2444) 2019-02-13 23:04:15 +13:00
Vivek Maskara
73bb0c52c9 Show wikidata edits done through the app (#2431)
* Show wikidata edits done through the app

* Minor changes based on code review
2019-02-13 05:58:22 +13:00
Vivek Maskara
2bc0d41748 Fix date time issue for google photos (#2438) 2019-02-13 00:17:06 +13:00
Vivek Maskara
d86a3aad79 Handle null value for artist (#2436) 2019-02-11 21:23:30 +13:00
Shubham Pinjwani
0e2bd3ec0c update Notification count after notification is marked as read (#2423) 2019-02-11 09:16:10 +05:30
Vivek Maskara
5a6402cd07 Make nearby query faster (#2419)
* Make nearby query faster

* Fix query
2019-02-10 20:53:02 +05:30
Shubham Pinjwani
a9629c6f99 Added option in the action bar menu to view archived notifications (#2422)
* changed layout and implemented archived notificaitons feature

* set different texts for toolbar,menu option and no notification text in archived

* modified the startup intent for NotificationsActivity

* disabled swipe on archived

* commit

* fixed navigation drawer on notification activity

* handled on back pressed

* updated strings.xml

* removed TODO

* some minor changes

* set progress bar visibility

* some code quality changes

* commit

* some code quality changes

* removing unused import statements
2019-02-10 16:10:08 +05:30
Vivek Maskara
f12837650a Use JSON SPARQL query for fetching nearby places (#2398)
* Use JSON response for nearby places

* Move okhttp calls to a different class

* wip

* Fetch picture of the day using JSON API

* Search images using JSON APIs

* tests

* Fix injection based on code review comments
2019-02-06 10:40:30 +05:30
Shubham Pinjwani
323527b3be Fixed notification card visiblity issue on media Detail Page (#2401) 2019-02-06 10:13:47 +05:30
Shubham Pinjwani
112f4ba15f Close Navigation Drawer on pressing back button(#2294) (#2295)
* Close Navigation Drawer on back pressed(#2294)

* some minor changes
2019-02-06 02:15:29 +05:30
Shubham Pinjwani
1d1088cfe5 Nearby map not loading on changing orientation issue solved(#2368) (#2372) 2019-02-06 02:10:57 +05:30
Vanshika Arora
2cd375a11b Progressbar in category and media fragment now doesn't overlaps the views (#2382)
* graddle changes

* scrolling fixed for both media and category
2019-02-06 02:06:59 +05:30
Shubham Pinjwani
29bea33035 hide the notification card if there's no nearby location (#2396)
* hide the notification card if there's no nearby location

* some minor changes
2019-02-06 01:59:44 +05:30
Vanshika Arora
ea45335b4f Copy text to clipboard on Long Click (#2411)
* Fixed issue #2405

* Final changes
2019-02-06 01:58:34 +05:30
Vivek Maskara
bd9e629647 Use get content intent instead of pick (#2407) 2019-02-04 22:06:19 +13:00
Vivek Maskara
52ab39381e Add module for file picker for camera and gallery uploads (#2375)
* Use easy image for image picker

* Do not use harcoded mime type

* Use uploadable file for image uploads

* Add picker files in filepicker module

* Remove redundant checks for file

* Make usage of file extensions consistent

* Add javadocs

* Fix tests

* Enable image upload using bookmark activity

* Fix multiple uploads

* Fix external image uploads

* Fix chooser intents

* Fix image quality checks

* Segregate internal and external upload intents

* Invoke all error messages from one place

* Minor changes

* Fix tests

* Add image processing service tests
2019-02-03 22:40:31 +02:00
Vivek Maskara
fb5a40bba5
Fix click of nearby list menu item (#2399) 2019-02-03 02:13:35 +05:30
Vanshika Arora
1b62ac4d2d Code to retrive unknown notification and UI (#2340)
* request change, changed notification icon

* Completed task 1 of the work

* commit changes

* commit changes

* updated notification class

* before notification id

* gradle reverted

* Minor changes to mark notifications as read

* commit changes

* delete on swipe

* notification count

* sipe to delete

* changes

* worked on changes requested

* commit changes

* Fix notification count

* reviewed changes

* round icon, swipe with icon

* Fix pending NPE issues with notifications

* final commit

* graddle changes

* removed changes for testing
2019-02-02 19:21:58 +05:30
Shubham Pinjwani
9451b00a15 Show bookmarked nearby locations differently (#2059) (#2349)
* Show bookmarked nearby locations differently (#2059)

* added custom bookmark marker

* passed value of bookmarkplacelist in tests

* update the nearby markers on clicking bookmark buttons
2019-02-02 19:13:42 +05:30
Vivek Maskara
16927057d0 Remove drawer layout from upload activity (#2380) 2019-02-01 23:31:28 +13:00
Vivek Maskara
35f1e84ff1 Use viewholder for populating contributions list (#2306)
* Use viewholder for populatiing contributions list

* Fix codacy issues

* Remove unused code
2019-01-30 12:06:15 +02:00
Vivek Maskara
2ba6ed622f Use channel ID while showing failed upload notification (#2322) 2019-01-30 12:04:00 +02:00
Vivek Maskara
1727a296c9 Remove notifications from nav drawer (#2319) 2019-01-30 11:51:29 +02:00
Vivek Maskara
4bbbfc839b Save Wikidata entity ID in contributions DB (#2317) 2019-01-30 11:49:30 +02:00
Vanshika Arora
dc5bca113b Fixed Date Issues in Explore Activity (#2371)
* Initial commit

* Fixed Issue #2362

* unused nodes
2019-01-30 10:24:14 +05:30
Vanshika Arora
f38feda896 modified date format (#2341)
* modified date format

* mediadetail fragment modified

* added the function in dateutils

* modified imports
2019-01-29 16:34:18 +05:30
Shubham Pinjwani
34829938a0 fixed Toggling of top card expand button issue(#2363) (#2364)
* fixed Toggling of top card expand button issue(#2363)

* removed debugging code
2019-01-27 22:30:23 +05:30
Shubham Pinjwani
e82e3b9cb6 fixed image not visible in top card issue(#2354) (#2355)
* fixed image not visible in top card issue(#2354)

* some minor changes
2019-01-27 21:33:43 +05:30
Vanshika Arora
f23cf3e7fa Caption can acquire the entire horizontal space (#2360)
* Fixed Issue #2357

* final commit

* final changes
2019-01-27 21:22:33 +05:30