summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2013-10-10 19:26:42 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-10 19:26:42 -0700
commit9845b382794530afdbb2c6142243bcb159335cca (patch)
treef4df1fee83cd469e20df3abcc00dd554e16fcb4f /core
parent518fb915d236806be985504ac7e07c560962162a (diff)
parent785cda30c35aefa90fd89adef0e71fa41fd3459c (diff)
downloadbase-9845b382794530afdbb2c6142243bcb159335cca.tar.gz
am 785cda30: am f8c146a2: am c37db9c0: Merge "Fix layout and invalidate in SubtitleView" into klp-dev
* commit '785cda30c35aefa90fd89adef0e71fa41fd3459c': Fix layout and invalidate in SubtitleView
Diffstat (limited to 'core')
-rw-r--r--core/java/com/android/internal/widget/SubtitleView.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/java/com/android/internal/widget/SubtitleView.java b/core/java/com/android/internal/widget/SubtitleView.java
index 0bdf90defbca..063468d12a63 100644
--- a/core/java/com/android/internal/widget/SubtitleView.java
+++ b/core/java/com/android/internal/widget/SubtitleView.java
@@ -183,7 +183,9 @@ public class SubtitleView extends View {
mInnerPaddingX = (int) (size * INNER_PADDING_RATIO + 0.5f);
mHasMeasurements = false;
- forceLayout();
+
+ requestLayout();
+ invalidate();
}
}
@@ -192,7 +194,9 @@ public class SubtitleView extends View {
mTextPaint.setTypeface(typeface);
mHasMeasurements = false;
- forceLayout();
+
+ requestLayout();
+ invalidate();
}
}
@@ -201,7 +205,9 @@ public class SubtitleView extends View {
mAlignment = textAlignment;
mHasMeasurements = false;
- forceLayout();
+
+ requestLayout();
+ invalidate();
}
}