Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aca8046c authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Temporary stop calling Flags API for performance reasons.

The Flags API end up with ContentProvider call which should not be
used in performance critical path.

Bug: 300053730
Bug: 300067767
Bug: 300067308
Bug: 63938206
Test: N/A
Change-Id: I9a4df3734e451f9c675021040e478064cf07443f
parent 8f9a09b3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_C
import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX;
import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_KEY;
import static android.view.inputmethod.CursorAnchorInfo.FLAG_HAS_VISIBLE_REGION;
import static com.android.text.flags.Flags.FLAG_USE_BOUNDS_FOR_WIDTH;
import android.R;
@@ -240,7 +241,6 @@ import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
import com.android.internal.util.ArrayUtils;
import com.android.internal.util.FastMath;
import com.android.internal.util.Preconditions;
import com.android.text.flags.Flags;
import libcore.util.EmptyArray;
@@ -1634,7 +1634,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }
        if (CompatChanges.isChangeEnabled(USE_BOUNDS_FOR_WIDTH)) {
            mUseBoundsForWidth = Flags.useBoundsForWidth();
            mUseBoundsForWidth = false;  // TODO: Connect to the flag.
        } else {
            mUseBoundsForWidth = false;
        }