mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-12-03 08:17:26 +00:00
EN: Remove ExposureSummary from intent extras in ExposureWindow mode
Intent extras are only supported in v1 mode, but CWA also accesses them in ExposureWindow mode, which can result in ClassNotFoundException in optimized builds. Fixes #1325
This commit is contained in:
parent
c648883128
commit
714367b3aa
1 changed files with 4 additions and 1 deletions
|
@ -370,10 +370,13 @@ class ExposureNotificationServiceImpl(private val context: Context, private val
|
|||
|
||||
try {
|
||||
val intent = if (exposureSummary.matchedKeyCount > 0) {
|
||||
Intent(ACTION_EXPOSURE_STATE_UPDATED).putExtra(EXTRA_EXPOSURE_SUMMARY, exposureSummary)
|
||||
Intent(ACTION_EXPOSURE_STATE_UPDATED)
|
||||
} else {
|
||||
Intent(ACTION_EXPOSURE_NOT_FOUND)
|
||||
}
|
||||
if (token != TOKEN_A) {
|
||||
intent.putExtra(EXTRA_EXPOSURE_SUMMARY, exposureSummary)
|
||||
}
|
||||
intent.putExtra(EXTRA_TOKEN, token)
|
||||
intent.`package` = packageName
|
||||
Log.d(TAG, "Sending $intent")
|
||||
|
|
Loading…
Reference in a new issue