@ThreadSafe public final class BundleScrubber extends Object
scrub(android.content.Intent) BEFORE inspecting any of the Intent's extras.| Modifier and Type | Method and Description |
|---|---|
static boolean |
scrub(Bundle bundle)
Scrubs a Bundle for bad extras.
|
static boolean |
scrub(Intent intent)
Scrubs an Intent for bad extras in
Intent.getExtras(). |
public static boolean scrub(Intent intent)
Intent.getExtras().
Note: this method does not recursively scrub Bundles.
intent - Intent whose extras will be scrubbed. If intent has
at least one bad extra, the extra Bundle will be cleared. Note
that intent may be mutated by this method.intent's extras were cleared, false if
intent was not mutated.public static boolean scrub(Bundle bundle)
Note: this method does not recursively scrub Bundles.
bundle - Bundle whose extras will be scrubbed. If bundle has
at least one bad extra, the Bundle will be cleared. Note that
bundle may be mutated by this method.bundle was cleared, false if bundle was
not mutated.