Merge "Add missing ViewDebug infos for View.getTextDirection()" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5054803a02
@@ -16990,6 +16990,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
*
|
||||
* @attr ref android.R.styleable#View_textDirection
|
||||
*/
|
||||
@ViewDebug.ExportedProperty(category = "text", mapping = {
|
||||
@ViewDebug.IntToString(from = TEXT_DIRECTION_INHERIT, to = "INHERIT"),
|
||||
@ViewDebug.IntToString(from = TEXT_DIRECTION_FIRST_STRONG, to = "FIRST_STRONG"),
|
||||
@ViewDebug.IntToString(from = TEXT_DIRECTION_ANY_RTL, to = "ANY_RTL"),
|
||||
@ViewDebug.IntToString(from = TEXT_DIRECTION_LTR, to = "LTR"),
|
||||
@ViewDebug.IntToString(from = TEXT_DIRECTION_RTL, to = "RTL"),
|
||||
@ViewDebug.IntToString(from = TEXT_DIRECTION_LOCALE, to = "LOCALE")
|
||||
})
|
||||
public int getTextDirection() {
|
||||
return (mPrivateFlags2 & PFLAG2_TEXT_DIRECTION_RESOLVED_MASK) >> PFLAG2_TEXT_DIRECTION_RESOLVED_MASK_SHIFT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user