Skip to content

Commit a0e9493

Browse files
committed
Revert changes in ConfigResolver
1 parent 7654251 commit a0e9493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/config/ConfigResolver.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void setMetadataBundle(ImmutableBundle bundle) {
116116
/** Default API to call for whether performance monitoring is currently silent. */
117117
public boolean isPerformanceMonitoringEnabled() {
118118
Boolean isPerformanceCollectionEnabled = getIsPerformanceCollectionEnabled();
119-
return (isPerformanceCollectionEnabled == null || isPerformanceCollectionEnabled)
119+
return (isPerformanceCollectionEnabled == null || isPerformanceCollectionEnabled == true)
120120
&& getIsServiceCollectionEnabled();
121121
}
122122

@@ -131,7 +131,7 @@ public Boolean getIsPerformanceCollectionEnabled() {
131131
// return developer config.
132132
// 4. Else, return null. Because Firebase Performance will read highlevel Firebase flag in this
133133
// case.
134-
if (Boolean.TRUE.equals(getIsPerformanceCollectionDeactivated())) {
134+
if (getIsPerformanceCollectionDeactivated()) {
135135
// 1. If developer has deactivated Firebase Performance in Manifest, return false.
136136
return false;
137137
}
@@ -186,7 +186,7 @@ public void setIsPerformanceCollectionEnabled(Boolean isEnabled) {
186186
// 2. Otherwise, save this configuration in device cache.
187187

188188
// If collection is deactivated, skip the action to save user configuration.
189-
if (Boolean.TRUE.equals(getIsPerformanceCollectionDeactivated())) {
189+
if (getIsPerformanceCollectionDeactivated()) {
190190
return;
191191
}
192192

0 commit comments

Comments
 (0)