@@ -287,7 +287,9 @@ R.drawable.ic_error_outline_black_24dp, getTheme()))
287287 }
288288
289289 mainFab = (FloatingActionButton ) findViewById (R .id .main_fab );
290-
290+ /*
291+ * called when upper arrow floating button
292+ */
291293 mainFab .setOnClickListener (new View .OnClickListener () {
292294 @ Override
293295 public void onClick (View v ) {
@@ -394,7 +396,9 @@ public void onClick(View v) {
394396 }
395397 });
396398 }
397-
399+ /*
400+ * Function to display the zoom and map FAB
401+ */
398402 private void showFABMenu (){
399403 isFABOpen =true ;
400404
@@ -407,6 +411,9 @@ private void showFABMenu(){
407411 zoomInButton .animate ().translationY (-getResources ().getDimension (R .dimen .first_fab ));
408412 }
409413
414+ /*
415+ * function to close the zoom and map FAB
416+ */
410417 private void closeFABMenu (){
411418 isFABOpen =false ;
412419 mainFab .animate ().rotationBy (-180 );
@@ -540,6 +547,9 @@ private void performUnwantedPictureDetectionProcess() {
540547 detectUnwantedPicturesAsync .execute ();
541548 }
542549
550+ /*
551+ * to display permission snackbar in share activity
552+ */
543553 private Snackbar requestPermissionUsingSnackBar (String rationale ,
544554 final String [] perms ,
545555 final int code ) {
@@ -772,7 +782,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
772782 return super .onOptionsItemSelected (item );
773783 }
774784
775- // Get SHA1 of file from input stream
785+ /*
786+ * Get SHA1 of file from input stream
787+ */
776788 private String getSHA1 (InputStream is ) {
777789
778790 MessageDigest digest ;
@@ -809,6 +821,9 @@ private String getSHA1(InputStream is) {
809821 }
810822 }
811823
824+ /*
825+ * function to provide pinch zoom
826+ */
812827 private void zoomImageFromThumb (final View thumbView , Uri imageuri ) {
813828 // If there's an animation in progress, cancel it
814829 // immediately and proceed with this one.
@@ -987,6 +1002,9 @@ public void onAnimationCancel(Animator animation) {
9871002
9881003 });
9891004 }
1005+ /*
1006+ * function to hide keybaord when not in use
1007+ */
9901008 public static void hideKeyboard (Activity activity ) {
9911009 View view = activity .findViewById (R .id .titleEdit | R .id .descEdit );
9921010 if (view != null ) {
0 commit comments