Add onClickListeners for camera and gallery FAB

This commit is contained in:
misaochan 2017-12-31 00:22:19 +10:00
parent a9e62cb1ea
commit c70eec650c

View file

@ -415,6 +415,22 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
description.setText(place.getDescription().getText()); description.setText(place.getDescription().getText());
title.setText(place.name.toString()); title.setText(place.name.toString());
distance.setText(place.distance.toString()); distance.setText(place.distance.toString());
fabCamera.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//TODO: Change this to activate camera upload
openWebView(place.siteLinks.getWikidataLink());
}
});
fabGallery.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//TODO: Change this to activate gallery upload
openWebView(place.siteLinks.getWikidataLink());
}
});
} }
private void openWebView(Uri link) { private void openWebView(Uri link) {