Skip to content

Commit 73ba0df

Browse files
Fabrice Di MeglioAndroid (Google) Code Review
authored andcommitted
Merge "Make Drawable RTL APIs public"
2 parents 5a5dc1c + 06e1ec6 commit 73ba0df

File tree

7 files changed

+6
-16
lines changed

7 files changed

+6
-16
lines changed

api/current.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9065,6 +9065,7 @@ package android.graphics.drawable {
90659065
method public int getMinimumWidth();
90669066
method public abstract int getOpacity();
90679067
method public boolean getPadding(android.graphics.Rect);
9068+
method public int getResolvedLayoutDirectionSelf();
90689069
method public int[] getState();
90699070
method public android.graphics.Region getTransparentRegion();
90709071
method public void inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
@@ -9099,6 +9100,10 @@ package android.graphics.drawable {
90999100
method public abstract void unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable);
91009101
}
91019102

9103+
public static abstract interface Drawable.Callback2 implements android.graphics.drawable.Drawable.Callback {
9104+
method public abstract int getResolvedLayoutDirection(android.graphics.drawable.Drawable);
9105+
}
9106+
91029107
public static abstract class Drawable.ConstantState {
91039108
ctor public Drawable.ConstantState();
91049109
method public abstract int getChangingConfigurations();
@@ -23109,7 +23114,7 @@ package android.view {
2310923114
method public void recycle();
2311023115
}
2311123116

23112-
public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
23117+
public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.graphics.drawable.Drawable.Callback2 android.view.KeyEvent.Callback {
2311323118
ctor public View(android.content.Context);
2311423119
ctor public View(android.content.Context, android.util.AttributeSet);
2311523120
ctor public View(android.content.Context, android.util.AttributeSet, int);

core/java/android/widget/ImageView.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ public void invalidateDrawable(Drawable dr) {
193193
}
194194
}
195195

196-
/**
197-
* @hide
198-
*/
199196
@Override
200197
public int getResolvedLayoutDirection(Drawable dr) {
201198
return (dr == mDrawable) ?

core/java/android/widget/ProgressBar.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -910,9 +910,6 @@ public void invalidateDrawable(Drawable dr) {
910910
}
911911
}
912912

913-
/**
914-
* @hide
915-
*/
916913
@Override
917914
public int getResolvedLayoutDirection(Drawable who) {
918915
return (who == mProgressDrawable || who == mIndeterminateDrawable) ?

core/java/android/widget/TextView.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4396,9 +4396,6 @@ public void invalidateDrawable(Drawable drawable) {
43964396
}
43974397
}
43984398

4399-
/**
4400-
* @hide
4401-
*/
44024399
@Override
44034400
public int getResolvedLayoutDirection(Drawable who) {
44044401
if (who == null) return View.LAYOUT_DIRECTION_LTR;

graphics/java/android/graphics/drawable/ClipDrawable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import android.graphics.*;
2525
import android.view.Gravity;
2626
import android.util.AttributeSet;
27-
import android.view.View;
2827

2928
import java.io.IOException;
3029

graphics/java/android/graphics/drawable/Drawable.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ public static interface Callback {
296296

297297
/**
298298
* Implement this interface if you want to create an drawable that is RTL aware
299-
*
300-
* @hide
301299
*/
302300
public static interface Callback2 extends Callback {
303301
/**
@@ -387,8 +385,6 @@ public void unscheduleSelf(Runnable what) {
387385
/**
388386
* Use the current {@link android.graphics.drawable.Drawable.Callback2} implementation to get
389387
* the resolved layout direction of this Drawable.
390-
*
391-
* @hide
392388
*/
393389
public int getResolvedLayoutDirectionSelf() {
394390
final Callback callback = getCallback();

graphics/java/android/graphics/drawable/ScaleDrawable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import android.graphics.*;
2525
import android.view.Gravity;
2626
import android.util.AttributeSet;
27-
import android.view.View;
2827

2928
import java.io.IOException;
3029

0 commit comments

Comments
 (0)