File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
firebase-sessions/src/main/kotlin/com/google/firebase/sessions/settings Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,23 @@ import kotlin.time.toDuration
27
27
internal class LocalOverrideSettings (context : Context ) : SettingsProvider {
28
28
private val metadata =
29
29
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
30
- context.packageManager.getApplicationInfo(
30
+ context.packageManager
31
+ .getApplicationInfo(
31
32
context.packageName,
32
33
PackageManager .ApplicationInfoFlags .of(PackageManager .GET_META_DATA .toLong()),
33
34
)
34
- } else {
35
- @Suppress(" DEPRECATION" ) // For older API levels.
36
- context.packageManager.getApplicationInfo(
35
+ .metaData
36
+ } else {
37
+ @Suppress(" DEPRECATION" ) // For older API levels.
38
+ context.packageManager
39
+ .getApplicationInfo(
37
40
context.packageName,
38
41
PackageManager .GET_META_DATA ,
39
42
)
40
- }
41
- .metaData
42
- ? : Bundle .EMPTY
43
+ .metaData
44
+ }
45
+ // Default to an empty bundle, meaning no cached values.
46
+ ? : Bundle .EMPTY
43
47
44
48
override val sessionEnabled: Boolean?
45
49
get() =
You can’t perform that action at this time.
0 commit comments