Revert "Ensure receiver unregistered synchronously in onDestroy"
This reverts commit e55aa17399.
This commit is contained in:
@@ -35,12 +35,6 @@ fun Long.toPluralInt(): Int {
|
||||
return (this % 1000000000).toInt() + 1000000000
|
||||
}
|
||||
|
||||
fun Context.ensureReceiverUnregistered(receiver: BroadcastReceiver) {
|
||||
try {
|
||||
unregisterReceiver(receiver)
|
||||
} catch (_: IllegalArgumentException) { }
|
||||
}
|
||||
|
||||
@SuppressLint("Recycle")
|
||||
fun <T> useParcel(block: (Parcel) -> T) = Parcel.obtain().run {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user