File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
firebase-perf/src/main/java/com/google/firebase/perf/config Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public void setMetadataBundle(ImmutableBundle bundle) {
116
116
/** Default API to call for whether performance monitoring is currently silent. */
117
117
public boolean isPerformanceMonitoringEnabled () {
118
118
Boolean isPerformanceCollectionEnabled = getIsPerformanceCollectionEnabled ();
119
- return (isPerformanceCollectionEnabled == null || isPerformanceCollectionEnabled )
119
+ return (isPerformanceCollectionEnabled == null || isPerformanceCollectionEnabled == true )
120
120
&& getIsServiceCollectionEnabled ();
121
121
}
122
122
@@ -131,7 +131,7 @@ public Boolean getIsPerformanceCollectionEnabled() {
131
131
// return developer config.
132
132
// 4. Else, return null. Because Firebase Performance will read highlevel Firebase flag in this
133
133
// case.
134
- if (Boolean . TRUE . equals ( getIsPerformanceCollectionDeactivated () )) {
134
+ if (getIsPerformanceCollectionDeactivated ()) {
135
135
// 1. If developer has deactivated Firebase Performance in Manifest, return false.
136
136
return false ;
137
137
}
@@ -186,7 +186,7 @@ public void setIsPerformanceCollectionEnabled(Boolean isEnabled) {
186
186
// 2. Otherwise, save this configuration in device cache.
187
187
188
188
// If collection is deactivated, skip the action to save user configuration.
189
- if (Boolean . TRUE . equals ( getIsPerformanceCollectionDeactivated () )) {
189
+ if (getIsPerformanceCollectionDeactivated ()) {
190
190
return ;
191
191
}
192
192
You can’t perform that action at this time.
0 commit comments