diff options
author | Alan Viverette <alanv@google.com> | 2013-09-09 18:09:13 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2013-09-09 18:09:13 -0700 |
commit | 617feb99a06e7ffb3894e86a286bf30e085f321a (patch) | |
tree | 81366597a0234fc7634effbf7cf9d13e2c5c69e2 /core/java/android/widget/PopupWindow.java | |
parent | e668c0a1759d35ce3156bcd830ed07d3fddd2ce4 (diff) | |
download | frameworks_base-617feb99a06e7ffb3894e86a286bf30e085f321a.zip frameworks_base-617feb99a06e7ffb3894e86a286bf30e085f321a.tar.gz frameworks_base-617feb99a06e7ffb3894e86a286bf30e085f321a.tar.bz2 |
Add View constructor that supplies a default style resource
Also updates the constructor of every class that extends View.
BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
Diffstat (limited to 'core/java/android/widget/PopupWindow.java')
-rw-r--r-- | core/java/android/widget/PopupWindow.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/widget/PopupWindow.java b/core/java/android/widget/PopupWindow.java index 1460737..2c1394e 100644 --- a/core/java/android/widget/PopupWindow.java +++ b/core/java/android/widget/PopupWindow.java @@ -167,8 +167,8 @@ public class PopupWindow { * * <p>The popup does provide a background.</p> */ - public PopupWindow(Context context, AttributeSet attrs, int defStyle) { - this(context, attrs, defStyle, 0); + public PopupWindow(Context context, AttributeSet attrs, int defStyleAttr) { + this(context, attrs, defStyleAttr, 0); } /** @@ -180,8 +180,7 @@ public class PopupWindow { mContext = context; mWindowManager = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE); - TypedArray a = - context.obtainStyledAttributes( + final TypedArray a = context.obtainStyledAttributes( attrs, com.android.internal.R.styleable.PopupWindow, defStyleAttr, defStyleRes); mBackground = a.getDrawable(R.styleable.PopupWindow_popupBackground); |