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) {
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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments