File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
app/src/main/java/fr/free/nrw/commons/contributions Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,10 @@ public View onCreateView(
150
150
151
151
contributionsListPresenter .onAttachView (this );
152
152
binding .fabCustomGallery .setOnClickListener (v -> launchCustomSelector ());
153
+ binding .fabCustomGallery .setOnLongClickListener (view -> {
154
+ ViewUtil .showShortToast (getContext (),R .string .custom_selector_title );
155
+ return true ;
156
+ });
153
157
154
158
if (Objects .equals (sessionManager .getUserName (), userName )) {
155
159
binding .tvContributionsOfUser .setVisibility (GONE );
@@ -321,10 +325,18 @@ private void setListeners() {
321
325
controller .initiateCameraPick (getActivity (), inAppCameraLocationPermissionLauncher );
322
326
animateFAB (isFabOpen );
323
327
});
328
+ binding .fabCamera .setOnLongClickListener (view -> {
329
+ ViewUtil .showShortToast (getContext (),R .string .add_contribution_from_camera );
330
+ return true ;
331
+ });
324
332
binding .fabGallery .setOnClickListener (view -> {
325
333
controller .initiateGalleryPick (getActivity (), true );
326
334
animateFAB (isFabOpen );
327
335
});
336
+ binding .fabGallery .setOnLongClickListener (view -> {
337
+ ViewUtil .showShortToast (getContext (),R .string .menu_from_gallery );
338
+ return true ;
339
+ });
328
340
}
329
341
330
342
/**
You can’t perform that action at this time.
0 commit comments