Add a "connectivity warning" bottom sheet.

This commit is contained in:
Greyson Parrelli
2024-07-19 16:17:04 -04:00
committed by Nicholas Tinsley
parent 44b2c62a0e
commit f1ba947a59
16 changed files with 312 additions and 51 deletions

View File

@@ -112,7 +112,12 @@ object CrashConfig {
return false
}
val partsPerMillion = (1_000_000 * percent).toInt()
if (percent <= 0f || percent > 100f) {
return false
}
val fraction = percent / 100
val partsPerMillion = (1_000_000 * fraction).toInt()
val bucket = BucketingUtil.bucket(RemoteConfig.CRASH_PROMPT_CONFIG, aci.rawUuid, 1_000_000)
return partsPerMillion > bucket
}