File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
android/src/main/java/io/fullstack/firestack Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ public void on(final String path,
391391 @ ReactMethod
392392 public void onOnce (final String path ,
393393 final ReadableArray modifiers ,
394- final String name ,
394+ final String name ,
395395 final Callback callback ) {
396396 Log .d (TAG , "Setting one-time listener on event: " + name + " for path " + path );
397397 FirestackDBReference ref = this .getDBHandle (path );
@@ -518,7 +518,7 @@ private FirestackDBReference getDBHandle(final String path) {
518518 return mDBListeners .get (path );
519519 }
520520
521- private void saveDBHandle (final String path ,
521+ private void saveDBHandle (final String path ,
522522 final FirestackDBReference dbRef ) {
523523 this .removeDBHandle (path );
524524 mDBListeners .put (path , dbRef );
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public void onSuccess(Uri uri) {
7979 }
8080 }).addOnFailureListener (new OnFailureListener () {
8181 @ Override
82- public void onFailure (@ NonNull Exception ex ) {
82+ public void onFailure (@ NonNull Exception exception ) {
8383 Log .e (TAG , "Failed to download file " + exception .getMessage ());
8484
8585 WritableMap err = Arguments .createMap ();
@@ -88,7 +88,7 @@ public void onFailure(@NonNull Exception ex) {
8888
8989 callback .invoke (err );
9090 }
91- })
91+ });
9292 }
9393
9494 // STORAGE
@@ -157,7 +157,7 @@ public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
157157 public void onProgress (UploadTask .TaskSnapshot taskSnapshot ) {
158158 double progress = (100.0 * taskSnapshot .getBytesTransferred ()) / taskSnapshot .getTotalByteCount ();
159159 System .out .println ("Upload is " + progress + "% done" );
160-
160+
161161 WritableMap data = Arguments .createMap ();
162162 data .putString ("eventName" , "upload_progress" );
163163 data .putDouble ("progress" , progress );
@@ -184,4 +184,4 @@ public void onPaused(UploadTask.TaskSnapshot taskSnapshot) {
184184 callback .invoke (err );
185185 }
186186 }
187- }
187+ }
You can’t perform that action at this time.
0 commit comments