Skip to content

Commit 9d3da9b

Browse files
authored
[Common] Remove outdated check (#7396)
The check still verified if the app was running in ICS, deprecated long ago. Internal b/446049497
1 parent 0aa02c7 commit 9d3da9b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,4 @@ After you make a change, here's the flow you should follow:
194194
## Updating this Guide
195195

196196
If new patterns or conventions are discovered, update this guide to ensure it remains a useful
197-
resource.
197+
resource.

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)