Commit graph

1893 commits

Author SHA1 Message Date
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
Vanshika Arora
075ff6d148 Disabled Share button in achievements until achievements are loaded (#2356)
* item hidden until loading

* Fixed Issue #2353
2019-01-27 17:11:44 +05:30
Vanshika Arora
ada67e012c Fixed issue #1507 (#2348)
Fixed #1507: Add progress bar in Nearby list
2019-01-26 22:00:10 +05:30
Vivek Maskara
68ae11e37f Use central auth token only for cross wiki calls (#2318)
* Use central auth token only for cross wiki calls

* Fix tests

* Add test for wikidata edit token
2019-01-25 18:14:41 +10:00
Vivek Maskara
de9611821b Fix version number for alpha builds (#2325) 2019-01-24 23:32:16 +05:30
Vivek Maskara
ddc83f1f22 Fix nearby crash due while loading (#2315) 2019-01-24 18:21:28 +10:00
Vivek Maskara
e389a95592 Fix log file not being attached (#2316)
* Fix log file not being attached

* Add filter for email clients
2019-01-24 18:21:07 +10:00
Vivek Maskara
53e186df9a Fix achievements response parsing (#2323) 2019-01-24 18:20:41 +10:00
Vivek Maskara
532ab8aeae Fix uploads getting stuck (#2309)
* Fix uploads getting stuck

* Fix test

* Use single instance of Gson across the app

* More logs to help debug upload failure

* Add request identifier

* wip

* Fix issues with image quality check dialogs
2019-01-24 17:56:18 +10:00
Shridhar Goel
aac0b7c52f Fix #2312: Prevent crash when internet connection is not available (#2320)
* Fixes crash when internet connection is not available

* Fixes crash when internet connection is not available

* Remove unused imports
2019-01-20 01:47:52 +05:30
Vivek Maskara
559127dfa3 Fix app stuck and memory issues while uploading images (#2287)
* Do not use an image array to store all bitmap pixels at once

* Extract image preprocessing to a different service and use computation thread

* Add java docs

* Cleanup code to remove temp file logic

* Add logs in upload flow

* Fix tests

* Fix more tests
2019-01-16 18:32:25 +02:00
Vivek Maskara
21f82dd346 Use fresco image loader instead of glide (#2282) 2019-01-16 21:17:28 +05:30
Shubham Pinjwani
5cda35c5f5 Prevent app from crashing on retry(#2256) (#2264)
* Prevent app from crashing on retry(#2256)

* Prevent app from crashing on retry(#2256)
2019-01-16 08:47:52 +05:30
Vivek Maskara
d4fa9cfa45 Use wrapper for interacting with shared preferences (#2288)
* Use wrapper for accessing shared preferences across the app

* Use Json kv store for storing place object

* Fix tests

* Fix test failure

* Fix UI tests
2019-01-14 00:13:21 +05:30
Adam Jones
1560540c72 Fix #2044 by not stopping MainActivity when looking at notifications (#2102) 2019-01-08 22:47:06 +05:30
Vivek Maskara
164ef9bcac Use image picker to pick images for upload (#2278)
* Use image picker to pick images for upload

* Consolidate storage permissions in Upload activity

* With proper request codes for image upload

* Use constants for upload limits

* Check for request code while handling requests

* Let fragment initiate the camera/gallery instead of activity

* Delete unused external storage utils
2019-01-09 02:26:46 +10:00
Ajinkya Korde
b05b302e65 Fix #2215 Added BetaCheckerUtil class and made necessary changes (#2274)
* Fix #2215 Added BetaCheckerUtil class and made necessary changes

* Fix #2215 Fixed formatting error in LogSender class

* Fix #2215 Renamed BetaCheckerUtil to ConfigUtils

* Fix #2215 Fixed formatting in CommonsApplicationModule
2019-01-08 01:01:00 +05:30
sp2710
dabcd43a5b Removed default license settings, and implemented selecting last selected license as default licence(#2170) (#2218)
* Removed default license settings, and implemented selecting last selected license as default licence(#2170)
* Replace settings license tests with recent upload limit test
2019-01-04 15:26:39 +00:00
Adam Jones
f5c8e7ad93 Fix #2214: Use Utils.isDarkTheme for consistency (#2268) 2019-01-04 18:25:31 +10:00
Vivek Maskara
e773a82206 Handle null URI while uploading picture (#2262)
* Handle null URI while uploading picture

* Modify cache method to never return null path

* Fix tests
2019-01-04 18:21:55 +10:00
vanshikaarora
e69c03cf83 fixed issue #2154 for achievements activity (#2087)
* fixed issue #2065 for achievements activity

* updates for issue #2154

* removed unwanted comments and undo gradle changes

* added strings to strings.xml

* changes made after reviews

* review changes

* build issues resolved

* Undo changes in gradle properties
2019-01-03 21:25:13 +05:30
neslihanturan
bedc53b0ca Fixes #2062 Nearby: My position does not move (#2235)
* Add method to check if current location marker is in visible region or not

* Ignore postion track updates if current location marker is not in the visible region

* Fix unnecessary progess bar issue
2019-01-04 00:28:11 +10:00
Vivek Maskara
a4a037a577 Use large heap size for commons app (#2261) 2019-01-04 00:16:16 +10:00
Vivek Maskara
be98a56ba0 Improve text for receiving shared images (#2266) 2019-01-04 00:05:00 +10:00
Vivek Maskara
465e232c67 Open gallery on gallery button click (#2267) 2019-01-03 12:18:36 +05:30
Vivek Maskara
a48a09a785 Use dexter for requesting storage permissions (#2258)
* Use dexter for requesting storage permissions

* minor changes

* Fix minor issue
2019-01-02 18:11:19 +02:00
Vivek Maskara
2ea6bd7f65 With more information while sending logs (#2222)
* With more information while sending logs

* With java docs and unit tests

* Changes based on code review
2019-01-03 01:12:08 +10:00
Adam Jones
5317063689 Fix night mode issues with search and categories (#2213) 2019-01-01 16:25:46 +05:30