mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Replace anonymous inner classes with lambdas
This commit is contained in:
parent
152fca30d3
commit
b27163906b
1 changed files with 3 additions and 12 deletions
|
|
@ -380,26 +380,17 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
|
||||||
title.setText(place.name.toString());
|
title.setText(place.name.toString());
|
||||||
distance.setText(place.distance.toString());
|
distance.setText(place.distance.toString());
|
||||||
|
|
||||||
|
fabCamera.setOnClickListener(view -> {
|
||||||
|
|
||||||
fabCamera.setOnClickListener(new View.OnClickListener() {
|
|
||||||
@Override
|
|
||||||
public void onClick(View view) {
|
|
||||||
//TODO: Change this to activate camera upload (see ContributionsListFragment). Insert shared preference.
|
//TODO: Change this to activate camera upload (see ContributionsListFragment). Insert shared preference.
|
||||||
Timber.d("Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
Timber.d("Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
||||||
openWebView(place.siteLinks.getWikidataLink());
|
openWebView(place.siteLinks.getWikidataLink());
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
fabGallery.setOnClickListener(new View.OnClickListener() {
|
fabGallery.setOnClickListener(view -> {
|
||||||
@Override
|
|
||||||
public void onClick(View view) {
|
|
||||||
//TODO: Change this to activate gallery upload (see ContributionsListFragment). Insert shared preference.
|
//TODO: Change this to activate gallery upload (see ContributionsListFragment). Insert shared preference.
|
||||||
Timber.d("Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
Timber.d("Image title: " + place.getName() + "Image desc: " + place.getLongDescription());
|
||||||
openWebView(place.siteLinks.getWikidataLink());
|
openWebView(place.siteLinks.getWikidataLink());
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openWebView(Uri link) {
|
private void openWebView(Uri link) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue