From 5cc0df214bbe2b169150c9060dc5288bb8aaf338 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 17 Jun 2015 19:44:05 -0700 Subject: Forget private partition keys. When we forget a private partition, ask vold to also forget the key for that partition GUID. This means we need to track both the filesystem UUID and the partition GUID for a private volume. Bug: 21782268 Change-Id: Icda1cbb65539d61dacc663428daf3d1a2e4c313e --- core/java/android/text/TextUtils.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/java/android/text/TextUtils.java') diff --git a/core/java/android/text/TextUtils.java b/core/java/android/text/TextUtils.java index d51aa79..d8f7158 100644 --- a/core/java/android/text/TextUtils.java +++ b/core/java/android/text/TextUtils.java @@ -465,6 +465,11 @@ public class TextUtils { return false; } + /** {@hide} */ + public static String nullIfEmpty(@Nullable String str) { + return isEmpty(str) ? null : str; + } + /** * Returns the length that the specified CharSequence would have if * spaces and control characters were trimmed from the start and end, -- cgit v1.1