Commit graph

4769 commits

Author SHA1 Message Date
translatewiki.net
855b3d34e9 Localisation updates from https://translatewiki.net. 2019-10-16 20:36:51 +02:00
neslihanturan
44cdd2fdc7 Refactor nearby classes mvp (#2969)
* Create parent contract

* Create map child contract and fill methods

* Add javadocs and specific interfaces for list

* Move general method to parent and add javadocs for parent

* Add explanation for keeping an emty View interface under NearbyListContract

* Move constracts under contract package

* Create presenters for map and list and implement user actions accordingly

* Add javadocs

* Add presenter, contract and fragment for parent Fragment of both NearyListFragment and NearbyMapFragment

* Implement missing methods

* Fix typo

* Add main views on fragment

* İmplement child fragment logic and their retain

* Relate parent presenter with parent fragment

* Add all location permission related methods to view contract and implement in fragment. Call them from presenter by passing locationServiceManager parameter

* Define refreshView method as updateMapAndList which is a better naming. Define it at presenter part.

* Define a presenter variable in fragment and call updateMapAndList method from there, if permissions are okay

* Add lock neabry method to unlisten nearby operations during updates

* Add network connection established check on view side, check it from presenter

* try to simplify previous method during refactor

* Add missing methods for NearbyMap

* Connect child fragment and prent fragment with presenter

* Change nearby design, first create views then register listeners

* AddnetworkBroadcatsReceiver on view side, call it from presenter

* Add comments

* Change the old NearbyFragment by our new NearbyParentFragment for first tests

* Prevent crash caused child fragment is actually null by checking if it is attached or not.

* Makes sure that initialize nearby operations method is called just after all views and fragments are ready and attached

* Make sure updateMAoAndList method is called when everything ready

* Rename a method with prepoer name

* Call update map and add required markers

* Find out zoom level problem

* Implement add nearby markers and add current marker methods

* remove unneeded codes copied from previous implementation

* Revert "remove unneeded codes copied from previous implementation"

This reverts commit 42539651de.

* add some commits and clear code

* Remove location listener implementation from view, handle them in presenter instead. And add timber debug notes and required method calls

* Style ,issues

* Refactor a variable name to camel case and bind search this area view

* Search this area button action is added

* Mostly implement search this area methods, not tested yet even once

* Make sure everything is called in required order and seach this area method basically works

* Rename methods accordingly and add Javadocs

* Add current location marker and remove circle around it

* Remove unused methods

* Add current location marker with object animator and remove previous marker is exists

* include clear map into add markers method and reorder methods

* Make search this area button appear at correct time

* Try to load un search this area is called

* Clear logs

* Add changes for permission made by Vivek to newly added fragments along with our nearby classes

* Add a view to nearby map ragment and insert map view as an item inside it

* Add logs to uınderstand why on meap ready callback is never called

* Add list item clicked and bottom sheet for list of nearby items is expanded

* Make nearby map ready callback came

* Add required methods to be called after map view is ready

* State: Map ready call is not called but permissions and methods are in correct order

* Remove unused logs

* Try to use SupportMapFragment instead, still no success...

* use SupportMapFragment instead

* Remove unused Near

* Upgrade mapbox sdk versions

* Remove Style import from fragment/NearbyMapFragment

* Remove Style import from **fragments/NearbyParentFragment

* Remove nearby/NearbyMapFragment

* Remove unused/old NearbyFragment and NearbyMapFragment

* Remove import of already removed class

* Make sure you removed everything related with mapbox implementation

* Update mapbox map

* Remove unused classes, do not forget centerMapToPlace doesn't work on this branch

* Remove Style class it required updated version of mapbox map

* Add base codes for new activity

* Prove that our mapbox sdk let us implement the map directly inside the activity

* Add base codes for testing mapbox activity in a single fragment inside activity

* Add codes from mapbox demo repository to test support fragment, map works in a single layer fragment

* Add base codes for test layered fragment activity

* Add Support fragment inside a fragment and proves that layered fragmentw with map works

* Test view pager and tab layout with support map fragment to see it works, it works!

* Move Contributions Fragment related codes to test activity

* Move nearby card methods

* Inject location manager and implement NerabyParentFragmentContract.View on test fragment

* Coppy the content of SupportMapFragment from mapbox repository, use this code to modify later. This method war suggested by mapbox team instead of extending the class

* Implement NearbyMapContract.View on our new SupportMapFragment

* Start to mplement logic of checking permissions

* Fix small dagger issue to inject location manager properly

* Request permission for nearby places if fragment is loaded and tab is selected

* Initialize map operations if map ready and tab is selected

* Markers loads at correct time

* Style the map according to new version of mapbox map

* Add some map elements like FABs and give their actions

* Implement map marker click actions

* Implement nearby Fabs logic with a small issue

* fix FABs are not closing problem

* Unkown problem occurs at map load when I try to use MainActivity again.

* Revert "Unkown problem occurs at map load when I try to use MainActivity again."

This reverts commit 3dc084415b.

* Search this area buttons are added but button function does not work and button visibility is problematic

* Fix issue with MainActivity with the help of Ashish

* Fix search this area button visibility issue

* Fix the issues with updating search nearby markers and camera position together

* Fix progress bar visibility issue

* Prevent loding map each time tab selected

* Take toolbar back

* Implement back button with presenter

* Add click actoion to bottom sheet details

* Add nearby list into bottom sheeet

* Make reuse existing fragments if there is any

* Code cleanup

* Cleanup

* Code cleanup

* Add lifecyle codes to prevent leaks

* Cleanup

* Code cleanup

* cleanup

* Make list item clicked and map focus to same place

* Add bookmark from list fragment

* Make nearby card click action work

* Revert "Fix conflicts"

This reverts commit f3451745d3, reversing
changes made to c5d4d5533d.

* Code cleanup

* Cleanup

* Make recenter button work when list sheet is expanded

* Cleanup

* Code cleanups

* NPE issue is not detected for now, can be solved on seperate PR

* Update map after Wikidata edit

* Cherry picked previously reverted merge, hoping this will fix enourmus amounts of diff files

* Previous merge bringed an file which should be deleted. Delete it.

* Revert irrelevant changes on build.gradle

* Revert irrelevant changes

* Jetbrains annotation is not included to build gradle, this issue caused build issues on my branch so I removed it to be able to build

* Rename ListView

* Use a singleton to access the presenter, instead of passing it to a variable inside fragment

* Fix code style issues

* Move hardcoded colors to colors.xml file

* Make larger methods smaller

* Make current location marker follow

* Do not track users position if user is searching around

* Revert irrelevant shanges at build gradle

* Remove unneeded variable

* Remove mvp directory, add sub directories directly under nearby directory instead

* Remove unneeded public definiton

* Remove unneeded namespace

* Add public defiiton, it is needed to reach the constructor.
2019-10-16 00:32:05 +10:00
translatewiki.net
5b72cbf67c Localisation updates from https://translatewiki.net. 2019-10-14 17:18:47 +02:00
translatewiki.net
b31cf11e56 Localisation updates from https://translatewiki.net. 2019-10-07 19:42:13 +02:00
Dmitry Brant
04d9db3477 Remove dependency on Exif parsing library. (#2947)
* Remove dependency on Exif parsing library.

* Fix test.
2019-10-05 17:19:48 +05:30
translatewiki.net
dfe59c4034 Localisation updates from https://translatewiki.net. 2019-10-01 16:26:47 +02:00
Ashish Kumar
f64e6eb432 Bugfix/fix upload presenter tests (#3158)
* Revert "Merge branch 'backend-overhaul' into master"

This reverts commit 0090f24257, reversing
changes made to 9bccbfe443.

* * Fixed upload presenter tests
* Deleted app/src/main/res/values-en-gb/error.xml
2019-09-29 15:08:46 +05:30
PavelAplevich
844e0903f0 Solution #3126 (#3155)
Fixed wrong upload dates after image upload
2019-09-29 14:58:49 +05:30
thetimeheist76
fbbaffb8ea First commit (#3093)
Fixes info icon color is Review
2019-09-29 13:57:32 +05:30
translatewiki.net
11d36189d4 Localisation updates from https://translatewiki.net. 2019-09-26 20:25:09 +02:00
translatewiki.net
d5ea1eb09f Localisation updates from https://translatewiki.net. 2019-09-23 17:47:22 +02:00
neslihanturan
11d92ae3d1 delete res/values-en-gb (#3153) 2019-09-23 20:36:16 +05:30
translatewiki.net
bd8810a995 Localisation updates from https://translatewiki.net. 2019-09-19 11:34:31 +02:00
translatewiki.net
bfc9998e44 Localisation updates from https://translatewiki.net. 2019-09-16 18:47:12 +02:00
translatewiki.net
77feb0abf7 Localisation updates from https://translatewiki.net. 2019-09-12 15:54:19 +02:00
translatewiki.net
b1ea9c9d9b Localisation updates from https://translatewiki.net. 2019-09-09 19:12:21 +02:00
PavelAplevich
864ecad2e7 Working with #3129 issue (#3146)
* Replace Hard-Coded strings with those from strings.xml.
2019-09-09 11:01:30 +05:30
translatewiki.net
0349e3e069 Localisation updates from https://translatewiki.net. 2019-09-06 06:46:07 +02:00
translatewiki.net
33620f5a7b Localisation updates from https://translatewiki.net. 2019-09-03 09:06:16 +02:00
translatewiki.net
76a759f7b4 Localisation updates from https://translatewiki.net. 2019-08-29 20:04:08 +02:00
RozaliyaRusskikh
a658620e89 Unused dependencies are removed (#3141)
Part of #3128
2019-08-29 00:54:05 +10:00
Vanshika Arora
c34447ef13 edited CREDITS file (#3145) 2019-08-28 21:00:42 +09:00
translatewiki.net
24f1f40418 Localisation updates from https://translatewiki.net. 2019-08-26 12:10:17 +02:00
translatewiki.net
eeeea47188 Localisation updates from https://translatewiki.net. 2019-08-23 06:20:17 +02:00
translatewiki.net
6c841922d2 Localisation updates from https://translatewiki.net. 2019-08-19 11:16:42 +02:00
translatewiki.net
2f7274451b Localisation updates from https://translatewiki.net. 2019-08-15 18:08:01 +02:00
translatewiki.net
74df6ac15b Localisation updates from https://translatewiki.net. 2019-08-12 12:09:10 +02:00
Ashish Kumar
5865d59d22 Revert "Merge branch 'backend-overhaul' into master" (#3125)
* Revert "Merge branch 'backend-overhaul' into master"

This reverts commit 0090f24257, reversing
changes made to 9bccbfe443.

* fixed test handleSubmitTest
2019-08-12 14:32:25 +05:30
translatewiki.net
cbdfb05530 Localisation updates from https://translatewiki.net. 2019-08-08 20:03:03 +02:00
Vanshika Arora
ec8bbb2782 removed swipe to delete (#2589) 2019-08-05 14:25:33 +03:00
Ufald
67d9afe77e Center map on location clicked in nearby list and notification card(#2060) (#2366)
* center map on location clicked in nearby (#2060)

* improved animation

* Center map on location clicked in nearby list

* removed unnecessary methods

* center map on location clicked in nearby notification card

* some minor changes

* travis build error

* resolved errors

* Tidy up PR
2019-08-05 14:00:42 +03:00
translatewiki.net
579d44ce80 Localisation updates from https://translatewiki.net. 2019-08-05 11:59:55 +02:00
translatewiki.net
009fe6f012 Localisation updates from https://translatewiki.net. 2019-08-01 18:17:20 +02:00
Vivek Maskara
0090f24257
Merge branch 'backend-overhaul' into master 2019-07-31 02:17:44 +05:30
translatewiki.net
9bccbfe443 Localisation updates from https://translatewiki.net. 2019-07-29 14:20:50 +02:00
Josephine Lim
016022547c Merge branch '2.11-release' 2019-07-29 21:45:27 +10:00
Josephine Lim
93b948d205 Merge branch '2.11-release-fork-3' of https://github.com/misaochan/apps-android-commons into 2.11-release-fork-3 2019-07-29 20:46:26 +10:00
Josephine Lim
e7dd272f85 Versioning for v2.11.0 2019-07-29 20:44:46 +10:00
Josephine Lim
d55f38bdf9
Update changelog.md 2019-07-29 20:42:26 +10:00
Ashish Kumar
9b769df0e8 Closes #3094 (#3095)
* BugFix in SpinnerDescriptionsAdapter and SpinnerLanguagesAdapter (use the langguage code provided by the spinner, donot set the language to the one returned by the locale)
2019-07-29 02:03:49 +10:00
translatewiki.net
2c7d210430 Localisation updates from https://translatewiki.net. 2019-07-25 10:07:43 +02:00
Ilgaz Er
386d08794e Deleted unused classes related to modification (#3084)
Removed ModificationsSyncAdapter
2019-07-23 19:14:07 +05:30
translatewiki.net
0574b753ba Localisation updates from https://translatewiki.net. 2019-07-22 13:52:54 +02:00
Josephine Lim
1a60fec5da Merge remote-tracking branch 'origin/2.11-release' 2019-07-22 00:12:21 +10:00
Ashish Kumar
8cd9bd5524 Fix category search bug (#3080)
* Closes #3027
* Concat category search with search with image title list and default categories

* Fixed unit test CategoriesPresenterTest.searchForCategoriesTest

* bug fix [search for categories even when the edit text is empty (perform title based search)]

* Category items should show the selected item on top
2019-07-21 23:50:35 +10:00
translatewiki.net
1560b77652 Localisation updates from https://translatewiki.net. 2019-07-18 16:19:33 +02:00
Vitaly V. Pinchuk
32715d9cce Set defaults to ON for all EXIF tags (#3068) 2019-07-16 19:46:23 +10:00
Vivek Maskara
75f3098c35
Fix build (#3075) 2019-07-16 03:00:28 +05:30
Ilgaz Er
8b36ee52d1 Migrated OkHttpJsonApiClient#getMedia and getPictureOfTheDay to MediaClient (#3056)
* With media client APIs migrated to retrofit (#2998)

* With media client APIs migrated to retrofit

* Add test cases and java docs

* Fix test

* Fix build

* Fix build and other minor issues

* Fix tests

* Categories related client API's migrated to retrofit (#3053)

* Commit 1

* searchCategories migrated to retrofit

* SearchCategoriesFragment migrated to new API

* Removed unused code

* Created tests

* implemented searching by prefix
fixed SearchCategoryFragment behaviour where the same categories would be added to the list instead of new ones.

* added tests

* Migrated searchTitles to searchCategories, function behaviour seems identical

* With media client APIs migrated to retrofit (#2998)

* With media client APIs migrated to retrofit

* Add test cases and java docs

* Fix test

* Fix build

* Fix build and other minor issues

* Fix tests

* Categories related client API's migrated to retrofit (#3053)

* Commit 1

* searchCategories migrated to retrofit

* SearchCategoriesFragment migrated to new API

* Removed unused code

* Created tests

* implemented searching by prefix
fixed SearchCategoryFragment behaviour where the same categories would be added to the list instead of new ones.

* added tests

* Migrated searchTitles to searchCategories, function behaviour seems identical

* OkHttpJsonApi#getMediaList migrated to retrofit (#3054)

* Migrated OkHttpJsonApi#getMediaList partially to MediaClient#getCategoryImages

* Migrated rest of OkHttpJsonApi#getMediaList functionality to MediaClient#getCategoryImages

* Removed unused code and tests

* Fixed small bug

* Added tests

* Removed unused CategoryImageController

* getSubCategoryList and getParentCategoryList migrated to retrofit (#3055)

* Migrated getSubCategoryList to retrofit

* Migrated getParentCategoryList to retrofit

* Removed obsolete functions

* Added tests

* Fixed small bugs

* Migrated OkHttpJsonApiClient#getMedia and getPictureOfTheDay to MediaClient

* Removed obsolete functions and added tests

* Fixed merge errors

* With media client APIs migrated to retrofit (#2998)

* With media client APIs migrated to retrofit

* Add test cases and java docs

* Fix test

* Fix build

* Fix build and other minor issues

* Fix tests

* Categories related client API's migrated to retrofit (#3053)

* Commit 1

* searchCategories migrated to retrofit

* SearchCategoriesFragment migrated to new API

* Removed unused code

* Created tests

* implemented searching by prefix
fixed SearchCategoryFragment behaviour where the same categories would be added to the list instead of new ones.

* added tests

* Migrated searchTitles to searchCategories, function behaviour seems identical

* OkHttpJsonApi#getMediaList migrated to retrofit (#3054)

* Migrated OkHttpJsonApi#getMediaList partially to MediaClient#getCategoryImages

* Migrated rest of OkHttpJsonApi#getMediaList functionality to MediaClient#getCategoryImages

* Removed unused code and tests

* Fixed small bug

* Added tests

* Removed unused CategoryImageController

* getSubCategoryList and getParentCategoryList migrated to retrofit (#3055)

* Migrated getSubCategoryList to retrofit

* Migrated getParentCategoryList to retrofit

* Removed obsolete functions

* Added tests

* Fixed small bugs

* Consume login client from data client library (#2894)

Fix actions for review client

Use data client library for notifications

With delete helper migrated to data client

With wikidata edits

With notifications and modifications migrated to data client

With upload migrated to retrofit

Delete unused code

Reuse thank interface from the library
2019-07-16 02:08:18 +05:30
translatewiki.net
94f3b6ea39 Localisation updates from https://translatewiki.net. 2019-07-15 19:58:46 +02:00