Fix overrides of isLayoutRtl(Drawable dr)

Change-Id: I7042805747db134d93e39cbb41773d8d5a1cb370
This commit is contained in:
Fabrice Di Meglio
2011-05-27 14:54:59 -07:00
parent 5ff0f99b23
commit a98eef8601
2 changed files with 3 additions and 3 deletions

View File

@@ -188,7 +188,7 @@ public class ImageView extends View {
@Override
public boolean isLayoutRtl(Drawable dr) {
return ((dr == mDrawable) && isLayoutRtl()) || super.isLayoutRtl(dr);
return (dr == mDrawable) ? isLayoutRtl() : super.isLayoutRtl(dr);
}
@Override

View File

@@ -917,8 +917,8 @@ public class ProgressBar extends View {
@Override
public boolean isLayoutRtl(Drawable who) {
return ((who == mProgressDrawable || who == mIndeterminateDrawable) && isLayoutRtl()) ||
super.isLayoutRtl(who);
return (who == mProgressDrawable || who == mIndeterminateDrawable) ?
isLayoutRtl() : super.isLayoutRtl(who);
}
@Override