Skip to content

Commit 8df7f66

Browse files
Show Labels For FAB in Contribution Page (commons-app#5493)
1 parent d8b7e27 commit 8df7f66

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/src/main/java/fr/free/nrw/commons/contributions/ContributionsListFragment.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ public View onCreateView(
150150

151151
contributionsListPresenter.onAttachView(this);
152152
binding.fabCustomGallery.setOnClickListener(v -> launchCustomSelector());
153+
binding.fabCustomGallery.setOnLongClickListener(view -> {
154+
ViewUtil.showShortToast(getContext(),R.string.custom_selector_title);
155+
return true;
156+
});
153157

154158
if (Objects.equals(sessionManager.getUserName(), userName)) {
155159
binding.tvContributionsOfUser.setVisibility(GONE);
@@ -321,10 +325,18 @@ private void setListeners() {
321325
controller.initiateCameraPick(getActivity(), inAppCameraLocationPermissionLauncher);
322326
animateFAB(isFabOpen);
323327
});
328+
binding.fabCamera.setOnLongClickListener(view -> {
329+
ViewUtil.showShortToast(getContext(),R.string.add_contribution_from_camera);
330+
return true;
331+
});
324332
binding.fabGallery.setOnClickListener(view -> {
325333
controller.initiateGalleryPick(getActivity(), true);
326334
animateFAB(isFabOpen);
327335
});
336+
binding.fabGallery.setOnLongClickListener(view -> {
337+
ViewUtil.showShortToast(getContext(),R.string.menu_from_gallery);
338+
return true;
339+
});
328340
}
329341

330342
/**

0 commit comments

Comments
 (0)