Skip to content

Commit 727a700

Browse files
committed
[Common] Remove outdated check
The check still verified if the app was running in ICS, deprecated long ago. Internal b/446049497
1 parent 0aa02c7 commit 727a700

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

firebase-common/src/main/java/com/google/firebase/FirebaseApp.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import com.google.android.gms.common.api.internal.BackgroundDetector;
3838
import com.google.android.gms.common.internal.Objects;
3939
import com.google.android.gms.common.internal.Preconditions;
40-
import com.google.android.gms.common.util.PlatformVersion;
4140
import com.google.android.gms.common.util.ProcessUtils;
4241
import com.google.firebase.components.Component;
4342
import com.google.firebase.components.ComponentDiscovery;
@@ -689,8 +688,7 @@ private static class GlobalBackgroundStateListener
689688
new AtomicReference<>();
690689

691690
private static void ensureBackgroundStateListenerRegistered(Context context) {
692-
if (!(PlatformVersion.isAtLeastIceCreamSandwich()
693-
&& context.getApplicationContext() instanceof Application)) {
691+
if (!(context.getApplicationContext() instanceof Application)) {
694692
return;
695693
}
696694
Application application = (Application) context.getApplicationContext();

0 commit comments

Comments
 (0)