Skip to content

Commit

Permalink
Merge pull request #991 from acrown-msft/stringEmptyWorkaround
Browse files Browse the repository at this point in the history
Fix #943 - Workaround for String.isEmpty() being broken in newer version of Gradle
  • Loading branch information
barbeau authored Jun 27, 2019
2 parents 9e729f6 + 5478fdb commit 42fca29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static boolean isBuildVersionSupportedBySocial() {
*/
public static boolean isSocialApiKeyDefined() {
String embeddedSocialApiKey = BuildConfig.EMBEDDED_SOCIAL_API_KEY;
return embeddedSocialApiKey != null && !embeddedSocialApiKey.isEmpty();
return embeddedSocialApiKey != null && embeddedSocialApiKey.length() != 0;
}

/**
Expand Down

0 comments on commit 42fca29

Please sign in to comment.