Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 34bca50

Browse files
Make UserAgent singleton for the example app
1 parent fabe483 commit 34bca50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/src/main/java/org/wordpress/android/fluxc/example/di/AppConfigModule.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
import java.lang.reflect.Field;
1717

18+
import javax.inject.Singleton;
19+
1820
import dagger.Module;
1921
import dagger.Provides;
2022

@@ -41,6 +43,7 @@ public AppSecrets provideAppSecrets() {
4143
}
4244

4345
@Provides
46+
@Singleton
4447
public UserAgent provideUserAgent(Context appContext) {
4548
return new UserAgent(appContext, "fluxc-example-android");
4649
}

0 commit comments

Comments
 (0)