Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -696,12 +696,12 @@ class ContributionsFragment : CommonsDaggerSupportFragment(), FragmentManager.On
}
}

override fun onLocationChangedSignificantly(latLng: LatLng) {
override fun onLocationChangedSignificantly(latLng: LatLng?) {
// Will be called if location changed more than 1000 meter
updateClosestNearbyCardViewInfo()
}

override fun onLocationChangedSlightly(latLng: LatLng) {
override fun onLocationChangedSlightly(latLng: LatLng?) {
/* Update closest nearby notification card onLocationChangedSlightly
*/
try {
Expand All @@ -711,7 +711,7 @@ class ContributionsFragment : CommonsDaggerSupportFragment(), FragmentManager.On
}
}

override fun onLocationChangedMedium(latLng: LatLng) {
override fun onLocationChangedMedium(latLng: LatLng?) {
// Update closest nearby card view if location changed more than 500 meters
updateClosestNearbyCardViewInfo()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ public void onMediaClicked(int position) {
*/
@Override
public Media getMediaAtPosition(int i) {
if (mapFragment != null && mapFragment.mediaList != null) {
return mapFragment.mediaList.get(i);
if (mapFragment != null && mapFragment.getMediaList() != null) {
return mapFragment.getMediaList().get(i);
} else {
return null;
}
Expand All @@ -159,8 +159,8 @@ public Media getMediaAtPosition(int i) {
*/
@Override
public int getTotalMediaCount() {
if (mapFragment != null && mapFragment.mediaList != null) {
return mapFragment.mediaList.size();
if (mapFragment != null && mapFragment.getMediaList() != null) {
return mapFragment.getMediaList().size();
} else {
return 0;
}
Expand Down

This file was deleted.

Loading
Loading