Commit graph

187 commits

Author SHA1 Message Date
misaochan
361196bedd Add onRequestPermissionsResult() 2017-05-31 19:36:25 +10:00
misaochan
3bd1baaf8d Add constant for request code 2017-05-31 19:30:19 +10:00
misaochan
40a2e03b9c Add checkLocationPermission() call to onCreate() 2017-05-31 19:25:44 +10:00
misaochan
3ec93115e2 Add permission request for ACCESS_FINE_LOCATION 2017-05-31 19:25:04 +10:00
misaochan
e6383e20a6 Add checkLocationPermission() in NearbyActivity 2017-05-31 19:13:14 +10:00
misaochan
42c86576b3 Use string resource instead of hardcoded string 2017-05-30 20:08:00 +10:00
Tobias Schönberg
7b89731450 Fix variable spelling 2017-05-29 22:00:46 +02:00
Tobias Schönberg
2a7ef947ff Code style 2017-05-28 18:56:10 +02:00
Tobias Schönberg
0a86a31203 Code style fixes 2017-05-28 18:39:10 +02:00
Tobias Schönberg
4f4a875ebe Add a marker and circle of accuracy for current location
Currently the user's position is not visible on the map. This
commit adds a marker to the user's position and a circular
polygon which shows the accuracy of the location measurement.
2017-05-28 17:53:33 +02:00
Tobias Schönberg
db5dbbfdfd Fix crash of nearby list when the places list is null
Currently the NearbyController crashes when it is called with a
places list that is null. This is caused by the NearbyMapFragment
not handling this state correctly.
This commit adds tests for an empty list and null, which reproduce
the problem. An early return in the NearbyController can make
the tests pass, but might not be the best solution for this issue.
2017-05-24 22:15:38 +02:00
Vivek Maskara
0e71e817b6 Merge pull request #641 from sandarumk/fix_lint_issues
Fix lint issues
2017-05-20 19:11:07 +02:00
maskara
75f3fe4ed6 Fixed codacy issues 2017-05-20 13:43:47 +02:00
maskara
4823486139 Add popup menu in nearby info dialog 2017-05-20 13:09:16 +02:00
Dinu Kumarasiri
83957bae06 [Lint] Remove class variables to local 2017-05-20 11:53:46 +02:00
maskara
5fc9f84e79 Fixes #614: Crash: Fragment State loss exception 2017-05-19 15:44:15 +02:00
Josephine Lim
f6a7759317 Merge pull request #600 from whym/nearby-file
Read once and reuse the query file's content
2017-05-19 15:36:49 +02:00
Yusuke Matsubara
f039ec37bc Merge pull request #596 from domdomegg/codestyle
Lint issues
2017-05-17 20:15:10 +09:00
Yusuke Matsubara
22f5f51082 Read once and reuse the query file's content 2017-05-17 17:08:31 +09:00
addshore
c712b561d4 Get rid of other singletons 2017-05-16 15:19:43 +02:00
addshore
bdfbdc7579 Cleanup CommonsApplication Singelton 2017-05-16 15:19:15 +02:00
maskara
583a47e2b4 Fixes #587: Remove trailing carriage return 2017-05-16 13:11:54 +02:00
maskara
ddd5e602a9 Fixed nearby query to show read article link only for wikipedia articles 2017-05-16 12:46:05 +02:00
maskara
a6bbc8a33b With NavigationBaseActivity implemented 2017-05-16 11:58:54 +02:00
maskara
09cd596ff6 Integrated navigation drawer in the contributions activity 2017-05-16 11:57:07 +02:00
Yusuke Matsubara
04ea68333b Print radius with a limited number of digits + reduce debug output 2017-05-16 12:40:48 +09:00
Tobias Schönberg
14024601fc Change file extension of nearby query to .rq
Currently the file uses .txt which breaks syntax highlighting
one some platforms. This is also the file extension recommendet
in the standard:
https://www.w3.org/TR/2010/WD-sparql11-federated-query-20100601/

Changes to be committed:
	renamed:    src/main/assets/queries/nearby_query.txt -> src/main/assets/queries/nearby_query.rq
	modified:   src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java
2017-05-15 20:06:40 +02:00
Adam Jones
75060d7875 Removing unused imports 2017-05-15 16:45:46 +01:00
Dinu Kumarasiri
dfe3ff5dfe Set default text when no description found 2017-05-15 17:04:06 +02:00
Josephine Lim
aa4d2daf48 Move checkGps() to onResume 2017-05-15 12:11:06 +02:00
Josephine Lim
b377f0146c Add string resource 2017-05-15 12:10:19 +02:00
Josephine Lim
485a0a1bc3 Merge remote-tracking branch 'refs/remotes/commons-app/master' into display_toast
# Conflicts:
#	app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java
2017-05-15 11:23:10 +02:00
Josephine Lim
4a53db8476 Add string resources 2017-05-15 11:20:53 +02:00
Josephine Lim
d0622d14b1 Display toast if no nearby places found 2017-05-15 11:18:53 +02:00
Josephine Lim
9a2ab847e7 Merge pull request #580 from neslihanturan/customMapMarkers
Add custom map marker icons
2017-05-15 11:05:39 +02:00
Neslihan
fc1a04d0e4 Add custom map marker icons 2017-05-15 11:56:40 +03:00
Josephine Lim
0809290a62 Fix whitespace 2017-05-15 10:54:13 +02:00
Josephine Lim
42e975c19c Added logs 2017-05-15 10:49:45 +02:00
Josephine Lim
ad7c1cc8f5 Use requestCode instead 2017-05-15 10:47:02 +02:00
Josephine Lim
0af03bb456 Refresh view if settings changed 2017-05-15 10:39:56 +02:00
Josephine Lim
faa60dc824 Add string resources 2017-05-15 10:25:40 +02:00
Josephine Lim
e8f306a023 Add Dialog if GPS not enabled 2017-05-15 10:11:03 +02:00
Josephine Lim
5ed7755a2c Merge pull request #576 from neslihanturan/switchMapIcon
Switch map icon
2017-05-14 15:23:57 +02:00
Neslihan
e79d18f439 Fix codacy 2017-05-14 15:59:00 +03:00
Neslihan
dc1b04f3ed Switch map button accoding to map and list 2017-05-14 15:51:50 +03:00
maskara
fd72e45930 Fix Crash issue when GPS location is not available 2017-05-14 14:42:30 +02:00
maskara
ec0da2f4af Close fragment when tapped on the empty section 2017-05-14 13:53:37 +02:00
Neslihan
bb47332a37 Remove conflicts 2017-05-14 14:26:16 +03:00
maskara
cce8715fad Showing an overlay dialog when a nearby item is tapped 2017-05-14 11:49:25 +02:00
Neslihan
200625dcca bug fix 2017-05-13 15:22:20 +03:00