diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2011-08-17 16:56:55 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2011-08-17 17:15:12 -0700 |
commit | 4b60c30838fbd635964f1e79c057de5048dcc66f (patch) | |
tree | 1e66a0ffa25fa9786e081bf6307eeb46c9d6d185 /core/java/android/text/TextDirectionHeuristic.java | |
parent | 596072306191932c3a7f845b549795380eeb4c53 (diff) | |
download | frameworks_base-4b60c30838fbd635964f1e79c057de5048dcc66f.zip frameworks_base-4b60c30838fbd635964f1e79c057de5048dcc66f.tar.gz frameworks_base-4b60c30838fbd635964f1e79c057de5048dcc66f.tar.bz2 |
Fix bug #5175022 Easy mode in MeasuredText.setPara() is no more used
- use the real TextDirectionHeuristics constants
- make more formal that LayoutDirection should be resolved BEFORE TextDirection
- reset TextDirection if LayoutDirection is recomputed
- remove non used TextDirectionHeuristic.isRtl(CharSequence...)
Change-Id: I1d53a7e3ee324cfd27785bb4d715d93de8d9ff4d
Diffstat (limited to 'core/java/android/text/TextDirectionHeuristic.java')
-rw-r--r-- | core/java/android/text/TextDirectionHeuristic.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/core/java/android/text/TextDirectionHeuristic.java b/core/java/android/text/TextDirectionHeuristic.java index 130f879..0bf64e4 100644 --- a/core/java/android/text/TextDirectionHeuristic.java +++ b/core/java/android/text/TextDirectionHeuristic.java @@ -1,4 +1,18 @@ -// Copyright 2011 Google Inc. All Rights Reserved. +/* + * Copyright (C) 2011 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package android.text; @@ -8,6 +22,5 @@ package android.text; * @hide */ public interface TextDirectionHeuristic { - /** @hide */ boolean isRtl(CharSequence text, int start, int end); /** @hide */ boolean isRtl(char[] text, int start, int count); } |