From 727a700da9273c339515a6bc3bf7e2dd6892b7d6 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Thu, 18 Sep 2025 23:05:16 -0400 Subject: [PATCH 1/2] [Common] Remove outdated check The check still verified if the app was running in ICS, deprecated long ago. Internal b/446049497 --- .../src/main/java/com/google/firebase/FirebaseApp.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firebase-common/src/main/java/com/google/firebase/FirebaseApp.java b/firebase-common/src/main/java/com/google/firebase/FirebaseApp.java index 75063296f19..9b3f8da3b5f 100644 --- a/firebase-common/src/main/java/com/google/firebase/FirebaseApp.java +++ b/firebase-common/src/main/java/com/google/firebase/FirebaseApp.java @@ -37,7 +37,6 @@ import com.google.android.gms.common.api.internal.BackgroundDetector; import com.google.android.gms.common.internal.Objects; import com.google.android.gms.common.internal.Preconditions; -import com.google.android.gms.common.util.PlatformVersion; import com.google.android.gms.common.util.ProcessUtils; import com.google.firebase.components.Component; import com.google.firebase.components.ComponentDiscovery; @@ -689,8 +688,7 @@ private static class GlobalBackgroundStateListener new AtomicReference<>(); private static void ensureBackgroundStateListenerRegistered(Context context) { - if (!(PlatformVersion.isAtLeastIceCreamSandwich() - && context.getApplicationContext() instanceof Application)) { + if (!(context.getApplicationContext() instanceof Application)) { return; } Application application = (Application) context.getApplicationContext(); From 04ad416d1323232874952406b7d2785ae572df1e Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Fri, 19 Sep 2025 09:19:09 -0400 Subject: [PATCH 2/2] Fix format --- agents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents.md b/agents.md index ff2d7d76a86..bd058e68114 100644 --- a/agents.md +++ b/agents.md @@ -194,4 +194,4 @@ After you make a change, here's the flow you should follow: ## Updating this Guide If new patterns or conventions are discovered, update this guide to ensure it remains a useful -resource. \ No newline at end of file +resource.