@@ -288,7 +288,9 @@ R.drawable.ic_error_outline_black_24dp, getTheme()))
288
288
}
289
289
290
290
mainFab = (FloatingActionButton ) findViewById (R .id .main_fab );
291
-
291
+ /*
292
+ * called when upper arrow floating button
293
+ */
292
294
mainFab .setOnClickListener (new View .OnClickListener () {
293
295
@ Override
294
296
public void onClick (View v ) {
@@ -395,7 +397,9 @@ public void onClick(View v) {
395
397
}
396
398
});
397
399
}
398
-
400
+ /*
401
+ * Function to display the zoom and map FAB
402
+ */
399
403
private void showFABMenu (){
400
404
isFABOpen =true ;
401
405
@@ -408,6 +412,9 @@ private void showFABMenu(){
408
412
zoomInButton .animate ().translationY (-getResources ().getDimension (R .dimen .first_fab ));
409
413
}
410
414
415
+ /*
416
+ * function to close the zoom and map FAB
417
+ */
411
418
private void closeFABMenu (){
412
419
isFABOpen =false ;
413
420
mainFab .animate ().rotationBy (-180 );
@@ -541,6 +548,9 @@ private void performUnwantedPictureDetectionProcess() {
541
548
detectUnwantedPicturesAsync .execute ();
542
549
}
543
550
551
+ /*
552
+ * to display permission snackbar in share activity
553
+ */
544
554
private Snackbar requestPermissionUsingSnackBar (String rationale ,
545
555
final String [] perms ,
546
556
final int code ) {
@@ -773,7 +783,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
773
783
return super .onOptionsItemSelected (item );
774
784
}
775
785
776
- // Get SHA1 of file from input stream
786
+ /*
787
+ * Get SHA1 of file from input stream
788
+ */
777
789
private String getSHA1 (InputStream is ) {
778
790
779
791
MessageDigest digest ;
@@ -810,6 +822,9 @@ private String getSHA1(InputStream is) {
810
822
}
811
823
}
812
824
825
+ /*
826
+ * function to provide pinch zoom
827
+ */
813
828
private void zoomImageFromThumb (final View thumbView , Uri imageuri ) {
814
829
// If there's an animation in progress, cancel it
815
830
// immediately and proceed with this one.
0 commit comments