Commit graph

28 commits

Author SHA1 Message Date
Ujjwal Agrawal
86878fb62d Add feature to Browse commons via app (#1716)
* Search activity, image search fragment added

* Removed explore icon xml

* Updated Javadocs for search Activity and Navigation Base Activity

* SearchImageItem class updated

* Javadocs added for search activity

* removed redundant code and added javadocs for search image modules

* Javadocs added for updateImageList  method

* Rename featuredImage to explore

* Fixed null query issue

* changed cisibility to gone in case of successful Fetch

* Consolidate the networking libraries - drop volley in favor of OkHttp

* Extracted a few networking related items into a new Dagger module and finished the process of mocking the main component for tests.

* Refactoring to extract GpsCategoryModel and ensure single-responsibility-principle is maintained in CategoryApi.

* fixed featured image back bug

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

* Javadocs added

* Add option to set image as wallpaper (#1535)

* Add option to set image as wallpaper

* Added java docs

* Toast message on setting the wallpaper successfully

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

* SearchHistory Fragment added

* Search History Item added

* Content Provider, RecentSearchesDao added

* Database version changed to 7 and added methods for find, save ,..

* Delete icon deleted

* Reverted changes in gradle files

* Reverted changes in gradle files 2

* Optimized Improts

* reverted refractor for container name

* Refactored packagename, changed name to query in POJO class.

* Updated lastUsed to lastSearched

* Javadocs updated

* Check if user has been in search page for 5 seconds if yes then save it to history

* If else indentation updated

* added import in test

* edittext replaced with Searchview

* RxSearchview added

* Added support for API 21+

* Snackbar removed on success

* Improved code

* Pagination added

* Removed unnecessary toast

* Comment added in method

* Support for landscape mode added

* Fixed screen rotation issue on Explore and Search activity

* Clear focus added

* Delete all function added in Content Provider and called from fragment

* Scrollbar Recyclerview added

* Share Icon changed to 32 dp and back button added in explore, search activity.

* Removed unnecessary code

* Wrote and run tests for Recent Searches
 (creating db, migrating from versions, deletion, finding,..

* Category Search Fragment added

* Adapter factory added

* Renderer added

* Improvements

* Viewpager adapter added

* Updated XML

* Improvements in category card design

* tabs colors changed

* renamed images to media

* Java docs improved

* Javadoc added for setTabs

* JavaDoc for ViewPagerAdapter added

* Refreshed listview after delete

* Added mediaContainer

* Fixed ghost issue in image search fragment

* Ghost issue for categories fixed

* Removed Calling API call onback press

* Category Details activity added

* Menu added in category details activity

* back button added

* back button bugs

* Improvements in category images fragment

* JavaDoc added for some methods

* trimming added, Tab layout hided, recent searches refreshed

* SubCategory list fragment added, API added to extract subCategory Details

* API params updated to get more precise results

* Javadocs added for MWAPI method

* Pagination removed

* Fix API for fetching images inside category

* Parent category API added

* Fix #1704

* Fix #1704 corrected

* Fix #1702

* Fix #1702 and #1704

* added try catch statements

* Optimimzed imports

* loops replaced with Functions

* Javadocs for various methods added

* Fix java docs for Dao

* Javadocs for various methods added

* Fix java docs for Dao

* More javadocs added for explore Feature

* Javadocs added

* Javadocs added

* Improvements in indentation (#1739)
2018-07-24 10:17:24 +03:00
Suchit Kar
e42c6feba4 Check status before nominating for deletion 2018-03-19 23:20:46 +05:30
Suchit Kar
6ddd981406 Remove unused field and methods 2018-03-13 02:39:02 +05:30
Suchit Kar
369570537e Add delete task 2018-03-13 02:02:39 +05:30
Prajeen Govardhanam
80635adbfc
Update Media.java 2017-12-21 20:40:16 +05:30
prajgov
4ef996f2c0 added JavaDoc comments 2017-12-21 18:11:44 +05:30
Clay Tsay
40f9db47f6 JavaDoc Fix
Fixed the JavaDoc for getCoordinates and setCoordinates.
2017-12-10 16:52:51 -08:00
Clay Tsay
eeea0774b6 Added JavaDocs
Added JavaDocs to various files, namely License, Media, PageTitle, and Utils.
2017-12-10 00:28:51 -08:00
maskara
8dd8e09f2a Fixes NPE in Util function 2017-11-16 17:32:45 +05:30
Paul Hawke
15107e622b Codacy suggestions for improvement. 2017-09-03 22:20:52 -05:00
Mikel
79a22c1aca Add missing annotations 2017-07-26 16:24:24 +01:00
Mikel
65ddc1a4bb Add Nullable annotations to reduce risk of NPE 2017-07-15 18:41:10 +02:00
Mikel
7667180bc5 Make uploaded image's coordinates clickable 2017-07-15 17:53:37 +02:00
Yusuke Matsubara
d241d36d66 Add PageTitle class to canonicalize page names 2017-07-13 18:29:30 +09:00
Dmitry Brant
9469bf29e4 Remove dependency on old image-loading library, and remote a lot of code. 2017-05-19 16:24:04 +02:00
Fawwaz Yusran
547f2a062c Replace 'removeAll()' with 'clear()' 2017-05-17 13:49:04 +07:00
Tobias Schönberg
6b30e5e297 Code style, Codacy fixes 2017-05-13 16:21:08 +02:00
Tobias Schönberg
c6a2f2c7ea Get coordinate template when parsing image page
Currently the image detail view does not display the
coordinates.
This commit adds the coordinate template to the
parser and displays the results rounded to 4 digits.
2017-05-13 16:09:01 +02:00
maskara
22cbd41f49 Fixes #417: Open mobile view of Commons 2017-03-10 10:23:44 +05:30
veyndan
0993858272 Remove redundant casts 2017-03-04 00:42:18 +00:00
veyndan
d866ab3e07 Replace explicit type with diamond operator 2017-03-01 15:44:32 +00:00
veyndan
c1bcd921e3 Add missing @Override annotations 2017-02-26 02:38:05 +00:00
Josephine Lim
9ef32612c1 Merge pull request #315 from anirudh24seven/optimize-imports
Reorganize imports across the project
2016-10-31 14:32:43 +13:00
Anirudh S
1a11e0afc0 Reorganize imports across the project
Remove unwanted imports and sort import statements by running Android
Studio's 'Optimize Imports' feature in all source files.
2016-10-30 23:14:07 +05:30
Anirudh S
94e8c991ee Modified extra whitespace lines in source code
Code is much easier to read if there isn't too much of a gap between
lines. Primarily converted multi-line gaps into single line gaps.
2016-10-30 23:01:44 +05:30
misaochan
05c1a83790 Add null check for categories in Media.java 2016-07-04 17:15:47 +12:00
misaochan
269b5ec4e2 Found source of problem 2016-07-04 16:15:51 +12:00
Yusuke Matsubara
b4231bbfdc Merge "commons" into the project root directory 2016-07-02 16:48:57 +09:00
Renamed from commons/app/src/main/java/fr/free/nrw/commons/Media.java (Browse further)