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,
391
391
@ ReactMethod
392
392
public void onOnce (final String path ,
393
393
final ReadableArray modifiers ,
394
- final String name ,
394
+ final String name ,
395
395
final Callback callback ) {
396
396
Log .d (TAG , "Setting one-time listener on event: " + name + " for path " + path );
397
397
FirestackDBReference ref = this .getDBHandle (path );
@@ -518,7 +518,7 @@ private FirestackDBReference getDBHandle(final String path) {
518
518
return mDBListeners .get (path );
519
519
}
520
520
521
- private void saveDBHandle (final String path ,
521
+ private void saveDBHandle (final String path ,
522
522
final FirestackDBReference dbRef ) {
523
523
this .removeDBHandle (path );
524
524
mDBListeners .put (path , dbRef );
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public void onSuccess(Uri uri) {
79
79
}
80
80
}).addOnFailureListener (new OnFailureListener () {
81
81
@ Override
82
- public void onFailure (@ NonNull Exception ex ) {
82
+ public void onFailure (@ NonNull Exception exception ) {
83
83
Log .e (TAG , "Failed to download file " + exception .getMessage ());
84
84
85
85
WritableMap err = Arguments .createMap ();
@@ -88,7 +88,7 @@ public void onFailure(@NonNull Exception ex) {
88
88
89
89
callback .invoke (err );
90
90
}
91
- })
91
+ });
92
92
}
93
93
94
94
// STORAGE
@@ -157,7 +157,7 @@ public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
157
157
public void onProgress (UploadTask .TaskSnapshot taskSnapshot ) {
158
158
double progress = (100.0 * taskSnapshot .getBytesTransferred ()) / taskSnapshot .getTotalByteCount ();
159
159
System .out .println ("Upload is " + progress + "% done" );
160
-
160
+
161
161
WritableMap data = Arguments .createMap ();
162
162
data .putString ("eventName" , "upload_progress" );
163
163
data .putDouble ("progress" , progress );
@@ -184,4 +184,4 @@ public void onPaused(UploadTask.TaskSnapshot taskSnapshot) {
184
184
callback .invoke (err );
185
185
}
186
186
}
187
- }
187
+ }
You can’t perform that action at this time.
0 commit comments