summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/current.xml17
-rw-r--r--core/java/android/widget/FastScroller.java23
-rw-r--r--core/java/com/android/internal/widget/ActionBarContextView.java4
-rw-r--r--core/res/res/values/public.xml1
-rw-r--r--core/res/res/values/themes.xml1
5 files changed, 30 insertions, 16 deletions
diff --git a/api/current.xml b/api/current.xml
index f060182..631ab44 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -4215,7 +4215,7 @@
type="int"
transient="false"
volatile="false"
- value="16843592"
+ value="16843593"
static="true"
final="true"
deprecated="not deprecated"
@@ -4233,6 +4233,17 @@
visibility="public"
>
</field>
+<field name="fastScrollPreviewBackgroundRight"
+ type="int"
+ transient="false"
+ volatile="false"
+ value="16843591"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
<field name="fastScrollThumbDrawable"
type="int"
transient="false"
@@ -4248,7 +4259,7 @@
type="int"
transient="false"
volatile="false"
- value="16843591"
+ value="16843592"
static="true"
final="true"
deprecated="not deprecated"
@@ -251058,7 +251069,7 @@
deprecated="not deprecated"
visibility="public"
>
-<parameter name="t" type="T">
+<parameter name="arg0" type="T">
</parameter>
</method>
</interface>
diff --git a/core/java/android/widget/FastScroller.java b/core/java/android/widget/FastScroller.java
index 4e3ef0c..6ff671a 100644
--- a/core/java/android/widget/FastScroller.java
+++ b/core/java/android/widget/FastScroller.java
@@ -58,11 +58,11 @@ class FastScroller {
private static final int[] ATTRS = new int[] {
android.R.attr.textColorPrimary,
- com.android.internal.R.attr.fastScrollThumbDrawable,
- com.android.internal.R.attr.fastScrollTrackDrawable,
- com.android.internal.R.attr.fastScrollPreviewBackgroundLeft,
- com.android.internal.R.attr.fastScrollPreviewBackgroundRight,
- com.android.internal.R.attr.fastScrollOverlayPosition
+ android.R.attr.fastScrollThumbDrawable,
+ android.R.attr.fastScrollTrackDrawable,
+ android.R.attr.fastScrollPreviewBackgroundLeft,
+ android.R.attr.fastScrollPreviewBackgroundRight,
+ android.R.attr.fastScrollOverlayPosition
};
private static final int PRIMARY_TEXT_COLOR = 0;
@@ -227,14 +227,13 @@ class FastScroller {
private void init(Context context) {
// Get both the scrollbar states drawables
- final Resources res = context.getResources();
TypedArray ta = context.getTheme().obtainStyledAttributes(ATTRS);
- useThumbDrawable(context, ta.getDrawable(ta.getIndex(THUMB_DRAWABLE)));
- mTrackDrawable = ta.getDrawable(ta.getIndex(TRACK_DRAWABLE));
+ useThumbDrawable(context, ta.getDrawable(THUMB_DRAWABLE));
+ mTrackDrawable = ta.getDrawable(TRACK_DRAWABLE);
- mOverlayDrawableLeft = ta.getDrawable(ta.getIndex(PREVIEW_BACKGROUND_LEFT));
- mOverlayDrawableRight = ta.getDrawable(ta.getIndex(PREVIEW_BACKGROUND_RIGHT));
- mOverlayPosition = ta.getInt(ta.getIndex(OVERLAY_POSITION), OVERLAY_FLOATING);
+ mOverlayDrawableLeft = ta.getDrawable(PREVIEW_BACKGROUND_LEFT);
+ mOverlayDrawableRight = ta.getDrawable(PREVIEW_BACKGROUND_RIGHT);
+ mOverlayPosition = ta.getInt(OVERLAY_POSITION, OVERLAY_FLOATING);
mScrollCompleted = true;
@@ -249,7 +248,7 @@ class FastScroller {
mPaint.setTextAlign(Paint.Align.CENTER);
mPaint.setTextSize(mOverlaySize / 2);
- ColorStateList textColor = ta.getColorStateList(ta.getIndex(PRIMARY_TEXT_COLOR));
+ ColorStateList textColor = ta.getColorStateList(PRIMARY_TEXT_COLOR);
int textColorNormal = textColor.getDefaultColor();
mPaint.setColor(textColorNormal);
mPaint.setStyle(Paint.Style.FILL_AND_STROKE);
diff --git a/core/java/com/android/internal/widget/ActionBarContextView.java b/core/java/com/android/internal/widget/ActionBarContextView.java
index 60c3487..5ae3616 100644
--- a/core/java/com/android/internal/widget/ActionBarContextView.java
+++ b/core/java/com/android/internal/widget/ActionBarContextView.java
@@ -159,7 +159,9 @@ public class ActionBarContextView extends ViewGroup implements AnimatorListener
}
public void initForMode(final ActionMode mode) {
- finishAnimation();
+ if (mAnimationMode == ANIMATE_OUT) {
+ killMode();
+ }
if (mClose == null) {
LayoutInflater inflater = LayoutInflater.from(mContext);
diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml
index 6c76f57..dcc88f0 100644
--- a/core/res/res/values/public.xml
+++ b/core/res/res/values/public.xml
@@ -1405,6 +1405,7 @@
<public type="attr" name="fastScrollAlwaysVisible" />
<public type="attr" name="fastScrollThumbDrawable" />
<public type="attr" name="fastScrollPreviewBackgroundLeft" />
+ <public type="attr" name="fastScrollPreviewBackgroundRight" />
<public type="attr" name="fastScrollTrackDrawable" />
<public type="attr" name="fastScrollOverlayPosition" />
diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml
index 4d30a68..d34c6c1 100644
--- a/core/res/res/values/themes.xml
+++ b/core/res/res/values/themes.xml
@@ -287,6 +287,7 @@
<item name="dayPickerWeekDayViewStyle">@style/TextAppearance.Small.DayPickerWeekDayView</item>
<item name="fastScrollThumbDrawable">@android:drawable/scrollbar_handle_accelerated_anim2</item>
+ <item name="fastScrollTrackDrawable">@null</item>
<item name="fastScrollPreviewBackgroundRight">@android:drawable/menu_submenu_background</item>
<item name="fastScrollPreviewBackgroundLeft">@android:drawable/menu_submenu_background</item>
<item name="fastScrollOverlayPosition">floating</item>