Fix overrides of isLayoutRtl(Drawable dr)
Change-Id: I7042805747db134d93e39cbb41773d8d5a1cb370
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user