mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Add onClickListeners for camera and gallery FAB
This commit is contained in:
parent
a9e62cb1ea
commit
c70eec650c
1 changed files with 16 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue