Skip to content

Commit

Permalink
Revert D66367381
Browse files Browse the repository at this point in the history
Summary:
This diff reverts D66367381
It has broken WA:Bloks

Reviewed By: andreicoman11

Differential Revision: D66496535

fbshipit-source-id: 2cd6986c8dcd70cdf81b787fb21c14c7d106413b
  • Loading branch information
generatedunixname89002005232357 authored and facebook-github-bot committed Nov 26, 2024
1 parent d56da2f commit 3995072
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import androidx.core.text.TextDirectionHeuristicCompat;
import androidx.core.text.TextDirectionHeuristicsCompat;
import com.facebook.infer.annotation.Nullsafe;
import com.google.common.base.Preconditions;

@Nullsafe(Nullsafe.Mode.LOCAL)
public class StaticLayoutProxy {
Expand Down Expand Up @@ -61,7 +60,8 @@ public static StaticLayout create(
} catch (IllegalArgumentException e) {
// Retry creating the layout if the first attempt failed due to a race condition.
// See https://code.google.com/p/android/issues/detail?id=188163
if (Preconditions.checkNotNull(e.getMessage()).contains("utext_close")) {
// NULLSAFE_FIXME[Nullable Dereference]
if (e.getMessage().contains("utext_close")) {
return new StaticLayout(
text,
start,
Expand Down

0 comments on commit 3995072

Please sign in to comment.