mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add a "connectivity warning" bottom sheet.
This commit is contained in:
committed by
Nicholas Tinsley
parent
44b2c62a0e
commit
f1ba947a59
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user