Skip to content

Commit 56bbd86

Browse files
committed
annotated with Singleton to prevent object recreation
1 parent f2bd155 commit 56bbd86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

raveandroid/src/main/java/com/flutterwave/raveandroid/data/NetworkRequestImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.util.List;
2323

2424
import javax.inject.Inject;
25+
import javax.inject.Singleton;
2526

2627
import retrofit2.Call;
2728
import retrofit2.Callback;
@@ -31,7 +32,7 @@
3132
/**
3233
* Created by hamzafetuga on 18/07/2017.
3334
*/
34-
35+
@Singleton
3536
public class NetworkRequestImpl implements DataRequest.NetworkRequest {
3637

3738
Retrofit retrofit;

0 commit comments

Comments
 (0)