Skip to content

Commit 0c44da0

Browse files
committed
Javadocs Added
1 parent bbd80bc commit 0c44da0

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

app/src/main/java/fr/free/nrw/commons/upload/ShareActivity.java

+18-3
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,9 @@ R.drawable.ic_error_outline_black_24dp, getTheme()))
288288
}
289289

290290
mainFab = (FloatingActionButton) findViewById(R.id.main_fab);
291-
291+
/*
292+
* called when upper arrow floating button
293+
*/
292294
mainFab.setOnClickListener(new View.OnClickListener() {
293295
@Override
294296
public void onClick(View v) {
@@ -395,7 +397,9 @@ public void onClick(View v) {
395397
}
396398
});
397399
}
398-
400+
/*
401+
* Function to display the zoom and map FAB
402+
*/
399403
private void showFABMenu(){
400404
isFABOpen=true;
401405

@@ -408,6 +412,9 @@ private void showFABMenu(){
408412
zoomInButton.animate().translationY(-getResources().getDimension(R.dimen.first_fab));
409413
}
410414

415+
/*
416+
* function to close the zoom and map FAB
417+
*/
411418
private void closeFABMenu(){
412419
isFABOpen=false;
413420
mainFab.animate().rotationBy(-180);
@@ -541,6 +548,9 @@ private void performUnwantedPictureDetectionProcess() {
541548
detectUnwantedPicturesAsync.execute();
542549
}
543550

551+
/*
552+
* to display permission snackbar in share activity
553+
*/
544554
private Snackbar requestPermissionUsingSnackBar(String rationale,
545555
final String[] perms,
546556
final int code) {
@@ -773,7 +783,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
773783
return super.onOptionsItemSelected(item);
774784
}
775785

776-
// Get SHA1 of file from input stream
786+
/*
787+
* Get SHA1 of file from input stream
788+
*/
777789
private String getSHA1(InputStream is) {
778790

779791
MessageDigest digest;
@@ -810,6 +822,9 @@ private String getSHA1(InputStream is) {
810822
}
811823
}
812824

825+
/*
826+
* function to provide pinch zoom
827+
*/
813828
private void zoomImageFromThumb(final View thumbView, Uri imageuri ) {
814829
// If there's an animation in progress, cancel it
815830
// immediately and proceed with this one.

0 commit comments

Comments
 (0)